server-dotfiles/mail/docker-compose.yml

97 lines
1.9 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-11-29 11:58:39 +01:00
image: tvial/docker-mailserver:release-v7.0.1
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
volumes:
- rb_db:/var/lib/postgresql/data/
2020-07-14 11:55:23 +02:00
networks:
- internal
roundcube:
2020-11-29 11:58:39 +01:00
image: roundcube/roundcubemail:1.4.8-apache
2020-07-14 11:55:23 +02:00
restart: always
depends_on:
- mail
- roundcubedb
env_file:
- .env
- env-roundcube
volumes:
- rb_config:/var/roundcube/config/
2020-07-14 11:55:23 +02:00
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"
rb_config:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/mail/roundcube-config"
rb_db:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/mail/roundcube-db"
2020-07-14 11:07:33 +02:00
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: