1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/docker-compose.yml
2016-08-21 14:24:07 +02:00

101 lines
2.0 KiB
YAML

version: '2'
services:
http:
# build: nginx
image: freeposte/$FRONTEND:$VERSION
restart: always
env_file: .env
ports:
- "$BIND_ADDRESS:80:80"
- "$BIND_ADDRESS:443:443"
volumes:
- "$ROOT/certs:/certs"
redis:
image: redis:latest
restart: always
volumes:
- "$ROOT/redis:/data"
imap:
# build: dovecot
image: freeposte/dovecot:$VERSION
restart: always
env_file: .env
ports:
- "$BIND_ADDRESS:143:143"
- "$BIND_ADDRESS:993:993"
volumes:
- "$ROOT/freeposte:/data"
- "$ROOT/mail:/mail"
- "$ROOT/certs:/certs"
- "$ROOT/overrides:/overrides"
smtp:
# build: postfix
image: freeposte/postfix:$VERSION
restart: always
env_file: .env
ports:
- "$BIND_ADDRESS:25:25"
- "$BIND_ADDRESS:465:465"
- "$BIND_ADDRESS:587:587"
volumes:
- "$ROOT/freeposte:/data"
- "$ROOT/certs:/certs"
- "$ROOT/overrides:/overrides"
milter:
# build: rmilter
image: freeposte/rmilter:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/data"
- "$ROOT/dkim:/dkim"
- "$ROOT/overrides:/overrides"
antispam:
# build: rspamd
image: freeposte/rspamd:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/var/lib/rspamd"
antivirus:
# build: clamav
image: freeposte/clamav:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/data"
admin:
# build: admin
image: freeposte/admin:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/freeposte:/data"
- "$ROOT/dkim:/dkim"
- /var/run/docker.sock:/var/run/docker.sock:ro
webmail:
build: "$WEBMAIL"
image: "freeposte/$WEBMAIL:$VERSION"
restart: always
env_file: .env
volumes:
- "$ROOT/webmail:/data"
fetchmail:
# build: fetchmail
image: freeposte/fetchmail:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/freeposte:/data"