Skip to content

Commit 67eef4b

Browse files
committed
Update docker-compose.yml
1 parent 8cfdab2 commit 67eef4b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44

55
cakephp:
66
depends_on:
7-
- webserver
7+
- database
88
image: '${PHP_IMAGE_NAME}'
99
container_name: 'cakephp-php-fpm'
1010
networks:
@@ -37,7 +37,7 @@ services:
3737
3838
webserver:
3939
depends_on:
40-
- certbot
40+
- cakephp
4141
image: 'httpd:latest'
4242
container_name: webserver
4343
networks:
@@ -74,6 +74,8 @@ services:
7474
&& trap exit TERM && while :; do certbot renew --dry-run; sleep 12h & wait $${!}; done;"
7575

7676
proxy:
77+
depends_on:
78+
- webserver
7779
image: nginx:stable
7880
container_name: proxy
7981
networks:
@@ -105,11 +107,11 @@ services:
105107
TZ: '${LOCAL_TIMEZONE}'
106108
labels:
107109
- "docker-volume-backup.stop-during-backup=true"
108-
command: bash -c "/docker-entrypoint.sh nginx -t && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}' && nginx -g 'daemon off;'"
110+
command: bash -c "/docker-entrypoint.sh nginx -v && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}'"
109111

110112
phpmyadmin:
111113
depends_on:
112-
- cakephp
114+
- certbot
113115
image: phpmyadmin/phpmyadmin
114116
container_name: phpmyadmin
115117
networks:

0 commit comments

Comments
 (0)