File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ services:
44
55 wordpress :
66 depends_on :
7- - webserver
7+ - database
88 image : ' wordpress:${PHP_IMAGE_NAME}'
99 container_name : ' wp-${PHP_IMAGE_NAME}'
1010 networks :
@@ -38,7 +38,7 @@ services:
3838
3939 webserver :
4040 depends_on :
41- - certbot
41+ - wordpress
4242 image : ' httpd:latest'
4343 container_name : webserver
4444 networks :
@@ -75,6 +75,8 @@ services:
7575 && trap exit TERM && while :; do certbot renew --dry-run; sleep 12h & wait $${!}; done;"
7676
7777 proxy :
78+ depends_on :
79+ - webserver
7880 image : nginx:stable
7981 container_name : proxy
8082 networks :
@@ -106,11 +108,11 @@ services:
106108 TZ : ' ${LOCAL_TIMEZONE}'
107109 labels :
108110 - " docker-volume-backup.stop-during-backup=true"
109- command : bash -c "/docker-entrypoint.sh nginx -t && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}' && nginx -g 'daemon off; '"
111+ command : bash -c "/docker-entrypoint.sh nginx -v && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}'"
110112
111113 phpmyadmin :
112114 depends_on :
113- - wordpress
115+ - certbot
114116 image : phpmyadmin/phpmyadmin
115117 container_name : phpmyadmin
116118 networks :
You can’t perform that action at this time.
0 commit comments