From 890f3c5ea81aca5c4c2a0868f52ef277608d50d8 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 6 May 2024 15:51:16 -0700 Subject: attempt to fix shit --- playbooks/roles/mail/templates/docker-compose.yml.j2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'playbooks/roles/mail/templates/docker-compose.yml.j2') 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 }} -- cgit v1.2.3-70-g09d2