summaryrefslogtreecommitdiff
path: root/playbooks/roles/mail/templates/docker-compose.yml.j2
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-05-06 15:51:16 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-05-06 15:51:16 -0700
commit890f3c5ea81aca5c4c2a0868f52ef277608d50d8 (patch)
tree4a58b54a56297a64c61e978602475c7cf7514a10 /playbooks/roles/mail/templates/docker-compose.yml.j2
parent904657c27c5d927fd2117c1e91305c4a1b17d76b (diff)
downloadmmt-infra-890f3c5ea81aca5c4c2a0868f52ef277608d50d8.tar.gz
mmt-infra-890f3c5ea81aca5c4c2a0868f52ef277608d50d8.zip
attempt to fix shit
Diffstat (limited to 'playbooks/roles/mail/templates/docker-compose.yml.j2')
-rw-r--r--playbooks/roles/mail/templates/docker-compose.yml.j213
1 files changed, 12 insertions, 1 deletions
diff --git a/playbooks/roles/mail/templates/docker-compose.yml.j2 b/playbooks/roles/mail/templates/docker-compose.yml.j2
index f122185..8f5d3ab 100644
--- a/playbooks/roles/mail/templates/docker-compose.yml.j2
+++ b/playbooks/roles/mail/templates/docker-compose.yml.j2
@@ -4,6 +4,10 @@ services:
roundcube:
image: roundcube/roundcubemail:latest
restart: always
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "200m"
volumes:
- ./docker-data/roundcube/www:/var/www/html
- ./docker-data/roundcube/db/sqlite:/var/roundcube/db
@@ -21,8 +25,14 @@ services:
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:latest
- hostname: {{ mail_domain }}
+ hostname: {{ domain }}
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "200m"
restart: always
+ cap_add:
+ - NET_ADMIN
ports:
- 0.0.0.0:25:25
- 0.0.0.0:465:465
@@ -67,5 +77,6 @@ services:
- ENABLE_OAUTH2=1
- OAUTH2_INTROSPECTION_URL={{ roundcube_oauth2_user_uri }}
+ - PERMIT_DOCKER=host #fix SPF fail by copying the IPv4 of the docker container into the postfix cfg
extra_hosts:
- {{ ldap_server }}:{{ ldap_intranet }}