Working with docker secrets

This commit is contained in:
notplants
2021-11-30 17:25:33 +01:00
parent 8bc564c4b3
commit 3e31f25f80
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,10 @@ services:
# necessary Postgres options/variables
- POSTGRES_USER=mattermost
- POSTGRES_PASSWORD=mysupersecretpassword
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_DB=mattermost
secrets:
- postgres_password
networks:
- internal
@ -42,7 +44,6 @@ services:
# necessary Mattermost options/variables (see env.sample)
- MM_SQLSETTINGS_DRIVERNAME=postgres
# - MM_SQLSETTINGS_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10
# additional settings
- MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}