Added missing volumes and optimized depends_on

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-28 20:32:48 +01:00
parent f7d0e4533d
commit cab7032bfa

View File

@ -37,9 +37,9 @@ services:
- "{{ ip4_address }}:143:143" - "{{ ip4_address }}:143:143"
- "{{ ip4_address }}:993:993" - "{{ ip4_address }}:993:993"
volumes: volumes:
- "/etc/letsencrypt:/certs/letsencrypt" - "/etc/letsencrypt:/certs/letsencrypt:ro"
- "/mailu/overrides/nginx:/overrides" - "/mailu/overrides/nginx:/overrides"
- "front_certs:/certs"
admin: admin:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.8} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.8}
restart: always restart: always
@ -48,8 +48,7 @@ services:
- "/mailu/data:/data" - "/mailu/data:/data"
- "/mailu/dkim:/dkim" - "/mailu/dkim:/dkim"
depends_on: depends_on:
- redis - front
imap: imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.8} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.8}
restart: always restart: always
@ -66,6 +65,7 @@ services:
env_file: mailu.env env_file: mailu.env
volumes: volumes:
- "/mailu/overrides:/overrides" - "/mailu/overrides:/overrides"
- "smtp_queue:/queue"
depends_on: depends_on:
- front - front
@ -109,9 +109,10 @@ services:
- "/mailu/webmail:/data" - "/mailu/webmail:/data"
depends_on: depends_on:
- imap - imap
- database
volumes: volumes:
database: database:
smtp_queue:
front_certs:
networks: networks:
default: default:
driver: bridge driver: bridge