Skip to content

Commit e985c07

Browse files
committed
Update docker-compose.yml
1 parent e4fbd45 commit e985c07

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
joomla:
66
depends_on:
7-
- webserver
7+
- database
88
image: 'joomla:${PHP_IMAGE_NAME}'
99
container_name: 'jm-${PHP_IMAGE_NAME}'
1010
networks:
@@ -36,7 +36,7 @@ services:
3636

3737
webserver:
3838
depends_on:
39-
- certbot
39+
- joomla
4040
image: 'httpd:latest'
4141
container_name: webserver
4242
networks:
@@ -73,6 +73,8 @@ services:
7373
&& trap exit TERM && while :; do certbot renew --dry-run; sleep 12h & wait $${!}; done;"
7474

7575
proxy:
76+
depends_on:
77+
- webserver
7678
image: nginx:stable
7779
container_name: proxy
7880
networks:
@@ -104,11 +106,11 @@ services:
104106
TZ: '${LOCAL_TIMEZONE}'
105107
labels:
106108
- "docker-volume-backup.stop-during-backup=true"
107-
command: bash -c "/docker-entrypoint.sh nginx -t && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}' && nginx -g 'daemon off;'"
109+
command: bash -c "/docker-entrypoint.sh nginx -v && sh /tmp/ssl-proxyconf.sh '${DOMAIN_NAME}' '${LETSENCRYPT_CONF_PREFIX}' '${PROXY_PREFIX}'"
108110

109111
phpmyadmin:
110112
depends_on:
111-
- joomla
113+
- certbot
112114
image: phpmyadmin/phpmyadmin
113115
container_name: phpmyadmin
114116
networks:

0 commit comments

Comments
 (0)