mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
213 lines
5.0 KiB
Django/Jinja
213 lines
5.0 KiB
Django/Jinja
services:
|
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
|
|
|
# Core services
|
|
resolver:
|
|
image: ghcr.io/mailu/unbound:{{mailu_version}}
|
|
env_file: mailu.env
|
|
restart: {{docker_restart_policy}}
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
ipv4_address: 192.168.203.254
|
|
logging:
|
|
driver: journald
|
|
|
|
front:
|
|
image: ghcr.io/mailu/nginx:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
logging:
|
|
driver: journald
|
|
ports:
|
|
- "127.0.0.1:{{ http_port }}:80"
|
|
- "{{ ip4_address }}:25:25"
|
|
- "{{ ip4_address }}:465:465"
|
|
- "{{ ip4_address }}:{{system_email_smtp_port}}:{{system_email_smtp_port}}"
|
|
- "{{ ip4_address }}:110:110"
|
|
- "{{ ip4_address }}:995:995"
|
|
- "{{ ip4_address }}:143:143"
|
|
- "{{ ip4_address }}:993:993"
|
|
volumes:
|
|
- "/etc/mailu/overrides/nginx:/overrides:ro"
|
|
- "/etc/mailu/certs:/certs"
|
|
{% include 'templates/docker/container/depends-on-also-database.yml.j2' %}
|
|
resolver:
|
|
condition: service_started
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
webmail:
|
|
radicale:
|
|
dns:
|
|
- 192.168.203.254
|
|
|
|
admin:
|
|
image: ghcr.io/mailu/admin:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "admin_data:/data"
|
|
- "dkim:/dkim"
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
resolver:
|
|
condition: service_started
|
|
front:
|
|
condition: service_started
|
|
logging:
|
|
driver: journald
|
|
dns:
|
|
- 192.168.203.254
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
imap:
|
|
image: ghcr.io/mailu/dovecot:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "dovecot_mail:/mail"
|
|
- "/etc/mailu/overrides:/overrides:ro"
|
|
depends_on:
|
|
- front
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
logging:
|
|
driver: journald
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
smtp:
|
|
image: ghcr.io/mailu/postfix:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "/etc/mailu/overrides:/overrides:ro"
|
|
- "smtp_queue:/queue"
|
|
depends_on:
|
|
- front
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
logging:
|
|
driver: journald
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
oletools:
|
|
image: ghcr.io/mailu/oletools:{{mailu_version}}
|
|
hostname: oletools
|
|
restart: {{docker_restart_policy}}
|
|
depends_on:
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
noinet:
|
|
|
|
antispam:
|
|
image: ghcr.io/mailu/rspamd:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "filter:/var/lib/rspamd"
|
|
- "dkim:/dkim"
|
|
- "/etc/mailu/overrides/rspamd:/overrides:ro"
|
|
depends_on:
|
|
- front
|
|
- redis
|
|
- antivirus
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
logging:
|
|
driver: journald
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
noinet:
|
|
|
|
|
|
# Optional services
|
|
antivirus:
|
|
image: ghcr.io/mailu/clamav:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "filter:/data"
|
|
depends_on:
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
logging:
|
|
driver: journald
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
webdav:
|
|
image: ghcr.io/mailu/radicale:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "webdav_data:/data"
|
|
logging:
|
|
driver: journald
|
|
depends_on:
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
radicale:
|
|
|
|
fetchmail:
|
|
image: ghcr.io/mailu/fetchmail:{{mailu_version}}
|
|
volumes:
|
|
- "admin_data:/data"
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
logging:
|
|
driver: journald
|
|
depends_on:
|
|
- admin
|
|
- smtp
|
|
- imap
|
|
- resolver
|
|
dns:
|
|
- 192.168.203.254
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
webmail:
|
|
image: ghcr.io/mailu/webmail:{{mailu_version}}
|
|
restart: {{docker_restart_policy}}
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "webmail_data:/data"
|
|
- "/etc/mailu/overrides:/overrides:ro"
|
|
depends_on:
|
|
- imap
|
|
- front
|
|
- resolver
|
|
logging:
|
|
driver: journald
|
|
dns:
|
|
- 192.168.203.254
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
webmail:
|
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
smtp_queue:
|
|
admin_data:
|
|
webdav_data:
|
|
webmail_data:
|
|
filter:
|
|
dkim:
|
|
dovecot_mail:
|
|
redis:
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: {{mailu_subnet}}
|
|
radicale:
|
|
driver: bridge
|
|
webmail:
|
|
driver: bridge
|
|
noinet:
|
|
driver: bridge
|
|
internal: true |