Use secret seed for internal mail passwords
diff --git a/docker-compose.yml b/docker-compose.yml
index 0b60856..603fdca 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -76,6 +76,9 @@
build:
context: .
dockerfile: gerrit/Dockerfile
+ secrets:
+ - source : seed
+ mode: 0400
hostname: review.${SA_PUBLIC_DOMAIN_NAME}
env_file:
- gerrit/environment
@@ -89,7 +92,6 @@
- gerritnet
volumes:
- ./logs/gerrit/:/var/gerrit/logs/:rw
- - ./mail/passwd/gerrit/:/var/gerrit/passwd/:rw
- ./gerrit/etc/:/var/gerrit/etc/:rw
- ./gerrit/db/:/var/gerrit/db/:rw
- ./gerrit/git/:/var/gerrit/git/:rw
@@ -98,6 +100,9 @@
- ./gerrit/gerrit-oauth-provider.jar:/var/gerrit/plugins/gerrit-oauth-provider.jar:ro
mailserver:
image: ghcr.io/docker-mailserver/docker-mailserver:12
+ secrets:
+ - source : seed
+ mode: 0400
#container_name: mailserver
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
hostname: mail.${SA_PUBLIC_DOMAIN_NAME}
@@ -118,7 +123,6 @@
- ./logs/mail-supervisor/:/var/log/supervisor/:rw
- ./logs/mail/:/var/log/mail/:rw
- ./certs/:/etc/letsencrypt/:ro
- - ./mail/passwd/:/tmp/passwd/:ro
- ./mail/data/:/var/mail/:rw
- ./mail/state/:/var/mail-state/:rw
- ./mail/config/:/tmp/docker-mailserver/:rw