forked from chriszarate/docker-wordpress-vip-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (84 loc) · 2.9 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
version: "3"
services:
wordpress:
image: "wordpress:${WP_VERSION:-5.2.1}-php${PHP_VERSION:-7.3}-apache"
environment:
HTTPS_METHOD: "nohttps"
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"
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"
- "./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:
- "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"
- "./src/wp/vip-config:/var/www/html/wp-content/vip-config"
photon:
image: "chriszarate/photon:latest"
networks:
- "front"
mysql:
image: "mariadb:10.2"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
networks:
- "back"
proxy:
image: "jwilder/nginx-proxy:alpine"
environment:
HSTS: "off"
ports:
- "80:80"
- "443:443"
networks:
front:
aliases:
- "${DOCKER_DEV_DOMAIN}"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./certs/self-signed:/etc/nginx/certs:ro"
- "./conf/nginx-proxy.conf:/etc/nginx/conf.d/proxy.conf:ro"
- "./conf/nginx-proxy-wordpress.conf:/etc/nginx/vhost.d/${DOCKER_DEV_DOMAIN}_location:ro"
networks:
front: {}
back: {}
volumes:
wp: {}