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

126 lines
2.7 KiB
Plaintext
Raw Normal View History

version: '2'
services:
http:
2016-09-10 12:08:02 +02:00
# build: $FRONTEND
2016-10-28 23:30:25 +02:00
image: mailu/$FRONTEND:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
ports:
2016-08-20 17:01:12 +02:00
- "$BIND_ADDRESS:80:80"
- "$BIND_ADDRESS:443:443"
volumes:
- "$ROOT/certs:/certs"
- /var/run/docker.sock:/docker.sock:ro
redis:
image: redis:latest
2016-05-30 22:52:38 +02:00
restart: always
volumes:
- "$ROOT/redis:/data"
imap:
2016-08-20 14:34:52 +02:00
# build: dovecot
2016-10-28 23:30:25 +02:00
image: mailu/dovecot:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
ports:
- "$BIND_ADDRESS:110:110"
2016-08-20 17:01:12 +02:00
- "$BIND_ADDRESS:143:143"
- "$BIND_ADDRESS:993:993"
- "$BIND_ADDRESS:995:995"
- "$BIND_ADDRESS:4190:4190"
volumes:
2016-11-01 11:54:32 +02:00
- "$ROOT/data:/data"
- "$ROOT/mail:/mail"
- "$ROOT/certs:/certs"
- "$ROOT/overrides:/overrides"
smtp:
2016-08-20 14:34:52 +02:00
# build: postfix
2016-10-28 23:30:25 +02:00
image: mailu/postfix:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
ports:
2016-08-20 17:01:12 +02:00
- "$BIND_ADDRESS:25:25"
- "$BIND_ADDRESS:465:465"
- "$BIND_ADDRESS:587:587"
volumes:
2016-11-01 11:54:32 +02:00
- "$ROOT/data:/data"
- "$ROOT/certs:/certs"
- "$ROOT/overrides:/overrides"
milter:
2016-08-20 14:34:52 +02:00
# build: rmilter
2016-10-28 23:30:25 +02:00
image: mailu/rmilter:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/data"
- "$ROOT/dkim:/dkim"
- "$ROOT/overrides:/overrides"
antispam:
2016-08-20 14:34:52 +02:00
# build: rspamd
2016-10-28 23:30:25 +02:00
image: mailu/rspamd:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/var/lib/rspamd"
antivirus:
2016-08-20 14:34:52 +02:00
# build: clamav
image: mailu/$ANTIVIRUS:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
volumes:
- "$ROOT/filter:/data"
2016-11-30 15:02:36 +02:00
webdav:
# build: $WEBDAV
image: mailu/$WEBDAV:$VERSION
restart: always
env_file: .env
volumes:
- "$ROOT/dav:/data"
admin:
2016-08-21 15:08:29 +02:00
# build: admin
2016-10-28 23:30:25 +02:00
image: mailu/admin:$VERSION
labels:
- traefik.enable=true
2017-09-17 18:55:54 +02:00
- traefik.admin.frontend.rule=Host:$HOSTNAME;PathPrefixStrip:/admin/
- traefik.admin.port=80
- traefik.home.frontend.rule=Host:$HOSTNAME;Path:/
- traefik.home.port=80
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
ports:
- "127.0.0.1:8000:80"
volumes:
2016-11-01 11:54:32 +02:00
- "$ROOT/data:/data"
- "$ROOT/dkim:/dkim"
- "$ROOT/certs:/certs"
2016-04-24 18:08:23 +02:00
- /var/run/docker.sock:/var/run/docker.sock:ro
webmail:
# build: "$WEBMAIL"
2016-10-28 23:30:25 +02:00
image: "mailu/$WEBMAIL:$VERSION"
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:$HOSTNAME;PathPrefixStrip:/webmail/
- traefik.port=80
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
volumes:
- "$ROOT/webmail:/data"
2016-04-28 20:07:38 +02:00
fetchmail:
2016-08-20 14:49:42 +02:00
# build: fetchmail
2016-10-28 23:30:25 +02:00
image: mailu/fetchmail:$VERSION
2016-05-30 22:52:38 +02:00
restart: always
env_file: .env
2016-04-28 20:07:38 +02:00
volumes:
2016-11-01 11:54:32 +02:00
- "$ROOT/data:/data"