-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.05 KB
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
43
44
45
46
version: "3.5"
services:
wordpress:
image: "wordpress:${WP_VERSION:-6.6}-php${PHP_VERSION:-7.4}-apache"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN:-project.test}"
WORDPRESS_DB_HOST: "mysql"
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_PASSWORD: ""
WORDPRESS_DB_USER: "root"
depends_on:
- mysql
networks:
- back
ports:
- "80:80"
volumes:
- "wp:/var/www/html:rw"
- "./workshop-butler:/var/www/html/wp-content/plugins/workshop-butler:ro"
wp-cli:
image: "wordpress:cli-php${PHP_VERSION:-7.4}"
environment:
- APACHE_RUN_USER="www-data"
- APACHE_RUN_GROUP="www-data"
depends_on:
- "mysql"
networks:
- "back"
volumes:
- "wp:/var/www/html:rw"
- "./workshop-butler:/var/www/html/wp-content/plugins/workshop-butler:ro"
mysql:
image: "mariadb:10.6"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
networks:
- "back"
networks:
back: {}
volumes:
wp: {}