Add data containers to fix permission issues

master
andryyy 2016-12-15 10:08:36 +01:00
parent 7c9f312f0f
commit 4b7bf81cbd
1 changed files with 30 additions and 6 deletions

View File

@ -50,8 +50,8 @@ services:
- ./data/conf/rspamd/override.d/:/etc/rspamd/override.d:ro - ./data/conf/rspamd/override.d/:/etc/rspamd/override.d:ro
- ./data/conf/rspamd/local.d/:/etc/rspamd/local.d:ro - ./data/conf/rspamd/local.d/:/etc/rspamd/local.d:ro
- ./data/conf/rspamd/lua/:/etc/rspamd/lua/:ro - ./data/conf/rspamd/lua/:/etc/rspamd/lua/:ro
- ./data/dkim/txt/:/etc/rspamd/dkim/txt/:ro volumes_from:
- ./data/dkim/keys/:/etc/rspamd/dkim/keys/:ro - data-container-dkim
restart: always restart: always
dns: dns:
- 172.22.1.2 - 172.22.1.2
@ -69,7 +69,8 @@ services:
volumes: volumes:
- ./data/web:/web:ro - ./data/web:/web:ro
- ./data/conf/rspamd/dynmaps:/dynmaps:ro - ./data/conf/rspamd/dynmaps:/dynmaps:ro
- ./data/dkim/:/shared/dkim/ volumes_from:
- data-container-dkim
environment: environment:
- DBNAME=${DBNAME} - DBNAME=${DBNAME}
- DBUSER=${DBUSER} - DBUSER=${DBUSER}
@ -114,9 +115,14 @@ services:
depends_on: depends_on:
- pdns-mailcow - pdns-mailcow
volumes: volumes:
- ./data/conf/dovecot:/etc/dovecot:ro - ./data/conf/dovecot:/etc/dovecot
- ./data/vmail:/var/vmail
- ./data/assets/ssl:/etc/ssl/mail/:ro - ./data/assets/ssl:/etc/ssl/mail/:ro
volumes_from:
- data-container-vmail
environment:
- DBNAME=${DBNAME}
- DBUSER=${DBUSER}
- DBPASS=${DBPASS}
ports: ports:
- "${IMAP_PORT}:143" - "${IMAP_PORT}:143"
- "${IMAPS_PORT}:993" - "${IMAPS_PORT}:993"
@ -135,8 +141,12 @@ services:
depends_on: depends_on:
- pdns-mailcow - pdns-mailcow
volumes: volumes:
- ./data/conf/postfix:/opt/postfix/conf:ro - ./data/conf/postfix:/opt/postfix/conf
- ./data/assets/ssl:/etc/ssl/mail/:ro - ./data/assets/ssl:/etc/ssl/mail/:ro
environment:
- DBNAME=${DBNAME}
- DBUSER=${DBUSER}
- DBPASS=${DBPASS}
ports: ports:
- "${SMTP_PORT}:25" - "${SMTP_PORT}:25"
- "${SMTPS_PORT}:465" - "${SMTPS_PORT}:465"
@ -181,6 +191,20 @@ services:
aliases: aliases:
- nginx - nginx
data-container-dkim:
build: ./data/Dockerfiles/data-container-dkim
depends_on:
- pdns-mailcow
networks:
mailcow-network:
data-container-vmail:
build: ./data/Dockerfiles/data-container-vmail
depends_on:
- pdns-mailcow
networks:
mailcow-network:
networks: networks:
mailcow-network: mailcow-network:
driver: bridge driver: bridge