-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (95 loc) · 3.13 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3"
services:
wordpress:
image: "alexwoollam/wordpress-whale:1.0"
ports:
- "9099:9000"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN}"
WORDPRESS_DB_HOST: "mysql"
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_PASSWORD: ""
WORDPRESS_DB_USER: "root"
depends_on:
- "mysql"
networks:
- "front"
- "back"
restart: on-failure
volumes:
- "wp:/var/www/html:rw"
- "./certs/ca-root/ca.crt:/tmp/certs/root.crt:ro"
- "./conf/php-local.ini:/usr/local/etc/php/conf.d/local.ini:ro"
- "./conf/wp-local-config.php:/usr/local/etc/php/autoprepend.php:ro"
- "./devtools/vendor:/var/www/html/vendor:ro"
- "./bin:/var/www/html/bin:rw"
- "./src/vip-go-mu-plugins:/var/www/html/wp-content/mu-plugins"
- "./src/wp/client-mu-plugins:/var/www/html/wp-content/client-mu-plugins"
- "./src/wp/images:/var/www/html/wp-content/images"
- "./src/wp/languages:/var/www/html/wp-content/languages"
- "./src/wp/plugins:/var/www/html/wp-content/plugins"
- "./src/wp/private:/var/www/html/wp-content/private"
- "./src/wp/themes:/var/www/html/wp-content/themes"
- "./src/wp/vip-config:/var/www/html/wp-content/vip-config"
wp-cli:
image: "wordpress:cli-${WP_CLI_VERSION:-2.2.0}-php${PHP_VERSION:-7.3}"
environment:
- APACHE_RUN_USER="www-data"
- APACHE_RUN_GROUP="www-data"
depends_on:
- "mysql"
networks:
- "back"
volumes:
- "./src/wp:/var/www/html:rw"
- "./bin/install-wp.sh:/usr/local/bin/install-wp:ro"
- "./conf/php-local.ini:/usr/local/etc/php/conf.d/local.ini:ro"
- "./conf/wp-local-config.php:/usr/local/etc/php/autoprepend.php:ro"
- "./src/vip-go-mu-plugins:/var/www/html/wp-content/mu-plugins"
- "./src/wp/client-mu-plugins:/var/www/html/wp-content/client-mu-plugins"
- "./src/wp/images:/var/www/html/wp-content/images"
- "./src/wp/languages:/var/www/html/wp-content/languages"
- "./src/wp/plugins:/var/www/html/wp-content/plugins"
- "./src/wp/private:/var/www/html/wp-content/private"
- "./src/wp/themes:/var/www/html/wp-content/themes:rw"
- "./src/wp/vip-config:/var/www/html/wp-content/vip-config"
photon:
image: "alexwoollam/photon-whale"
networks:
- "front"
restart: on-failure
mysql:
image: "mariadb:10.2"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
volumes:
- "./src/wp/db:/docker-entrypoint-initdb.d"
networks:
- "back"
restart: on-failure
ports:
- "3306:3306"
proxy:
image: "jwilder/nginx-proxy:alpine"
environment:
HSTS: "off"
ports:
- "8080:80"
- "443:443"
networks:
front:
aliases:
- "${DOCKER_DEV_DOMAIN}"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- "./certs/self-signed:/etc/nginx/certs"
- "./conf/nginx-proxy.conf:/etc/nginx/conf.d/proxy.conf"
- "./conf/nginx-proxy-wordpress.conf:/etc/nginx/vhost.d/${DOCKER_DEV_DOMAIN}_location"
networks:
front: {}
back: {}
volumes:
wp: {}
mysql: {}