-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·42 lines (41 loc) · 1.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
mariadb:
image: docker.io/bitnami/mariadb:11.4
volumes:
- 'mariadb_data:/bitnami/mariadb'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
wordpress:
image: docker.io/bitnami/wordpress:6
ports:
- '8081:8080'
- '8443:8443'
volumes:
- 'wordpress_data:/bitnami/wordpress'
# (optional) linking phel-lang from local to vendor
- '../../phel-lang/phel-lang:/bitnami/phel-lang'
# plugin mount cannot be inside named volume mount at least initially
# https://github.com/moby/moby/issues/26051#issuecomment-125618978 (?)
# workaround by symlinking plugin into plugins dir in post-init script
- '.:/bitnami/phel-wp-plugin'
- './docker-post-init-scripts:/docker-entrypoint-init.d'
depends_on:
- mariadb
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- WORDPRESS_USERNAME=admin
- WORDPRESS_PASSWORD=password
- WORDPRESS_DATABASE_HOST=mariadb
- WORDPRESS_DATABASE_PORT_NUMBER=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- WORDPRESS_BLOG_NAME="Phel WP Plugin Demo Site"
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local