docker-mail-stack/docker-compose.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2019-04-14 16:44:54 +00:00
version: "2.1"
services:
dovecot:
2019-07-15 20:15:27 +00:00
image: dovecot:$VERSION_DOVECOT
build: "https://git.scimetis.net/yohan/docker-dovecot.git"
container_name: dovecot
2019-04-14 16:44:54 +00:00
restart: always
ports:
- 993:993/tcp
- 4190:4190/tcp
networks:
- mailnet
volumes:
- mail_data:/home/yohan
- ./dovecot_expire.sh:/root/dovecot_expire.sh
2019-07-15 20:15:27 +00:00
- ./users:/etc/dovecot/users
- ./15-lda.conf:/etc/dovecot/conf.d/15-lda.conf
2019-04-14 16:44:54 +00:00
fetchmail:
2019-07-15 20:15:27 +00:00
image: fetchmail:$VERSION_FETCHMAIL
build: "https://git.scimetis.net/yohan/docker-fetchmail.git"
container_name: fetchmail
2019-04-14 16:44:54 +00:00
restart: always
networks:
- mailnet
2019-07-15 20:15:27 +00:00
volumes:
- ./fetchmailrc:/etc/fetchmailrc
2019-04-14 16:44:54 +00:00
feed2imap:
2019-07-15 20:15:27 +00:00
image: feed2imap:$VERSION_FEED2IMAP
build: "https://git.scimetis.net/yohan/docker-feed2imap.git"
container_name: feed2imap
2019-04-14 16:44:54 +00:00
restart: always
networks:
- mailnet
2019-07-15 20:15:27 +00:00
volumes:
- ./feed2imaprc:/root/feed2imaprc
2019-04-14 16:44:54 +00:00
cron-purge-dovecot:
2019-07-15 20:15:27 +00:00
image: cron:$VERSION_CRON
build: "https://git.scimetis.net/yohan/docker-cron.git"
2019-04-14 16:44:54 +00:00
restart: always
network_mode: "host"
volumes:
- ./crontab:/etc/crontab
networks:
mailnet:
external: true
volumes:
mail_data:
external: true