server-dotfiles/mail/docker-compose.yml

81 lines
1.5 KiB
YAML
Raw Normal View History

2020-07-14 11:55:23 +02:00
version: '3.7'
2020-07-14 11:07:33 +02:00
services:
mail:
2020-07-14 11:55:23 +02:00
image: tvial/docker-mailserver:release-v7.0.0
2020-07-14 11:07:33 +02:00
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
container_name: ${CONTAINER_NAME}
2020-07-14 11:55:23 +02:00
restart: always
2020-07-14 11:07:33 +02:00
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- maillogs:/var/log/mail
- ./config/:/tmp/docker-mailserver/
- nginx_cert:/etc/letsencrypt/live/mail.poldebra.me
env_file:
- .env
- env-mailserver
cap_add:
- NET_ADMIN
- SYS_PTRACE
2020-07-14 11:55:23 +02:00
networks:
- internal
roundcubedb:
image: postgres:9.6-alpine
2020-07-14 11:07:33 +02:00
restart: always
2020-07-14 11:55:23 +02:00
env_file:
- .env
- env-roundcube
networks:
- internal
roundcube:
image: roundcube/roundcubemail:1.4.7-apache
restart: always
depends_on:
- mail
- roundcubedb
env_file:
- .env
- env-roundcube
networks:
- proxy
- internal
2020-07-14 11:07:33 +02:00
volumes:
maildata:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/mail/data"
mailstate:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/mail/state"
maillogs:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/mail/logs"
nginx_cert:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/reverse_proxy/certs/mail.poldebra.me"
2020-07-14 11:55:23 +02:00
networks:
proxy:
external: true
internal: