Working with docker secrets
This commit is contained in:
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user