sysfiles/opt/mailu/docker-compose.yml

186 lines
3.8 KiB
YAML
Raw Normal View History

2022-12-02 20:17:43 +01:00
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '2.2'
services:
# External dependencies
redis:
2023-08-02 22:52:37 +02:00
image: redis:7.0.12-alpine3.18
2022-12-02 20:17:43 +01:00
restart: always
volumes:
- redis_data:/data
depends_on:
- resolver
dns:
- 192.168.203.254
# Core services
front:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
restart: always
env_file: mailu.env
environment:
ADMIN: "false"
logging:
2023-08-02 22:52:37 +02:00
driver: journald
options:
tag: mailu-front
2022-12-02 20:17:43 +01:00
ports:
2024-02-03 17:35:56 +01:00
- 172.16.36.26:8004:80
- 172.16.36.26:8104:443
- 172.16.36.26:25:25
- 172.16.36.26:465:465
- 172.16.36.26:587:587
- 172.16.36.26:110:110
- 172.16.36.26:995:995
- 172.16.36.26:143:143
- 172.16.36.26:993:993
networks:
- default
- radicale
2022-12-02 20:17:43 +01:00
volumes:
- nginx_certs:/certs
- nginx_overrides:/overrides:ro
depends_on:
- resolver
dns:
- 192.168.203.254
resolver:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
env_file: mailu.env
restart: always
networks:
default:
ipv4_address: 192.168.203.254
admin:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
restart: always
env_file: mailu.env
2023-08-02 22:52:37 +02:00
logging:
driver: journald
options:
tag: mailu-admin
2022-12-02 20:17:43 +01:00
ports:
2024-06-06 16:09:12 +02:00
- 127.0.0.1:8005:8080
2022-12-02 20:17:43 +01:00
volumes:
- admin_data:/data
- admin_dkim:/dkim
depends_on:
- redis
- resolver
dns:
- 192.168.203.254
imap:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
restart: always
env_file: mailu.env
2023-08-02 22:52:37 +02:00
logging:
driver: journald
options:
tag: mailu-imap
2022-12-02 20:17:43 +01:00
volumes:
- dovecot_mail:/mail
- dovecot_overrides:/overrides:ro
depends_on:
- front
- resolver
dns:
- 192.168.203.254
smtp:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
restart: always
env_file: mailu.env
2023-08-02 22:52:37 +02:00
logging:
driver: journald
options:
tag: mailu-smtp
2022-12-02 20:17:43 +01:00
volumes:
- postfix_mailqueue:/queue
- postfix_overrides:/overrides:ro
depends_on:
- front
- resolver
dns:
- 192.168.203.254
2023-08-02 22:52:37 +02:00
oletools:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-2.0}
hostname: oletools
restart: always
networks:
- noinet
depends_on:
- resolver
dns:
- 192.168.203.254
2022-12-02 20:17:43 +01:00
antispam:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
hostname: antispam
restart: always
env_file: mailu.env
2024-02-03 17:35:56 +01:00
logging:
driver: journald
options:
tag: mailu-antispam
networks:
- default
- noinet
2022-12-02 20:17:43 +01:00
volumes:
- rspamd_filter:/var/lib/rspamd
- rspamd_overrides:/etc/rspamd/override.d:ro
depends_on:
- front
2023-08-02 22:52:37 +02:00
- redis
- oletools
2022-12-02 20:17:43 +01:00
- resolver
dns:
- 192.168.203.254
# Optional services
webdav:
2023-08-02 22:52:37 +02:00
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-2.0}
2022-12-02 20:17:43 +01:00
restart: always
env_file: mailu.env
volumes:
- dav_data:/data
2023-08-02 22:52:37 +02:00
networks:
- radicale
2022-12-02 20:17:43 +01:00
depends_on:
- resolver
dns:
- 192.168.203.254
volumes:
redis_data:
nginx_certs:
nginx_overrides:
admin_data:
admin_dkim:
dovecot_mail:
dovecot_overrides:
postfix_mailqueue:
postfix_overrides:
rspamd_filter:
rspamd_overrides:
dav_data:
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.203.0/24
2023-08-02 22:52:37 +02:00
radicale:
driver: bridge
noinet:
driver: bridge
internal: true