* remove volumes section

* bind mounts + localtime
This commit is contained in:
Casper 2021-06-21 17:36:59 +02:00 committed by GitHub
parent 7293e3c9e8
commit ea81aebf83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 24 deletions

View file

@ -197,9 +197,10 @@ services:
- "587:587" - "587:587"
- "993:993" - "993:993"
volumes: volumes:
- maildata:/var/mail - ./data/maildata:/var/mail
- mailstate:/var/mail-state - ./data/mailstate:/var/mail-state
- maillogs:/var/log/mail - ./data/maillogs:/var/log/mail
- /etc/localtime:/etc/localtime:ro
- ./config/:/tmp/docker-mailserver/ - ./config/:/tmp/docker-mailserver/
environment: environment:
- ENABLE_SPAMASSASSIN=1 - ENABLE_SPAMASSASSIN=1
@ -214,11 +215,6 @@ services:
- NET_ADMIN - NET_ADMIN
- SYS_PTRACE - SYS_PTRACE
restart: always restart: always
volumes:
maildata:
mailstate:
maillogs:
``` ```
#### LDAP setup #### LDAP setup
@ -238,9 +234,10 @@ services:
- "587:587" - "587:587"
- "993:993" - "993:993"
volumes: volumes:
- maildata:/var/mail - ./data/maildata:/var/mail
- mailstate:/var/mail-state - ./data/mailstate:/var/mail-state
- maillogs:/var/log/mail - ./data/maillogs:/var/log/mail
- /etc/localtime:/etc/localtime:ro
- ./config/:/tmp/docker-mailserver/ - ./config/:/tmp/docker-mailserver/
environment: environment:
- ENABLE_SPAMASSASSIN=1 - ENABLE_SPAMASSASSIN=1
@ -274,9 +271,4 @@ services:
- NET_ADMIN - NET_ADMIN
- SYS_PTRACE - SYS_PTRACE
restart: always restart: always
volumes:
maildata:
mailstate:
maillogs:
``` ```

View file

@ -141,8 +141,10 @@ To enable LDAP over StartTLS (on port 389), you need to set the following enviro
- "993:993" - "993:993"
volumes: volumes:
- maildata:/var/mail - ./data/maildata:/var/mail
- mailstate:/var/mail-state - ./data/mailstate:/var/mail-state
- ./data/maillogs:/var/log/mail
- /etc/localtime:/etc/localtime:ro
- ./config/:/tmp/docker-mailserver/ - ./config/:/tmp/docker-mailserver/
environment: environment:
@ -184,12 +186,6 @@ To enable LDAP over StartTLS (on port 389), you need to set the following enviro
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
volumes:
maildata:
driver: local
mailstate:
driver: local
``` ```
??? example "Kopano / Zarafa" ??? example "Kopano / Zarafa"