Load configs and secrets

This commit is contained in:
decentral1se 2021-05-14 17:22:11 +02:00
parent 0057935cdf
commit a3165a8b5d
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,7 @@ services:
- internal
secrets:
- db_password
- django_secret_key
- hyperkitty_api_key
- mailman_rest_password
environment:
@ -29,6 +30,8 @@ services:
- SMTP_HOST
- SMTP_PORT
configs:
- source: mailman_extra_cfg
target: /opt/mailman/core/mailman-extra.cfg
- source: core_entrypoint_sh
target: /usr/local/bin/docker-entrypoint-custom.sh
mode: 0555
@ -46,6 +49,7 @@ services:
- db_password
- django_secret_key
- hyperkitty_api_key
- mailman_rest_password
environment:
- DATABASE_HOST=db
- DATABASE_NAME=mailman
@ -54,11 +58,14 @@ services:
- DATABASE_USER=mailman
- HYPERKITTY_API_KEY_FILE=/run/secrets/hyperkitty_api_key
- MAILMAN_ADMIN_EMAIL
- MAILMAN_REST_PASSWORD_FILE=/run/secrets/mailman_rest_password
- SECRET_KEY_FILE=/run/secrets/django_secret_key
- SERVE_FROM_DOMAIN
- SMTP_HOST
- SMTP_PORT
configs:
- source: settings_local
target: /opt/mailman/web/settings_local.py
- source: web_entrypoint_sh
target: /usr/local/bin/docker-entrypoint-custom.sh
mode: 0555