diff options
author | kaiyou <pierre@jaury.eu> | 2018-02-04 15:04:26 +0100 |
---|---|---|
committer | kaiyou <pierre@jaury.eu> | 2018-02-04 15:04:26 +0100 |
commit | a207cccb059451682564cddf0e39c7c45b06cb72 (patch) | |
tree | b6ea40380ac21e762b95580a2b58f166e6180485 /contrib/docker/conf | |
parent | Provide an example docker compose file (diff) | |
download | synapse-a207cccb059451682564cddf0e39c7c45b06cb72.tar.xz |
Reuse environment variables of the postgres container
Diffstat (limited to 'contrib/docker/conf')
-rw-r--r-- | contrib/docker/conf/homeserver.yaml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/docker/conf/homeserver.yaml b/contrib/docker/conf/homeserver.yaml index 1a685320c0..7450cc1228 100644 --- a/contrib/docker/conf/homeserver.yaml +++ b/contrib/docker/conf/homeserver.yaml @@ -46,15 +46,15 @@ listeners: ## Database ## -{% if SYNAPSE_DB_PASSWORD %} +{% if POSTGRES_PASSWORD %} database: name: "psycopg2" args: - user: "{{ SYNAPSE_DB_USER or "matrix" }}" - password: "{{ SYNAPSE_DB_PASSWORD }}" - database: "{{ SYNAPSE_DB_DATABASE or "matrix" }}" - host: "{{ SYNAPSE_DB_HOST or "db" }}" - port: "{{ SYNAPSE_DB_PORT or "5432" }}" + user: "{{ POSTGRES_USER or "matrix" }}" + password: "{{ POSTGRES_PASSWORD }}" + database: "{{ POSTGRES_DB or "matrix" }}" + host: "{{ POSTGRES_HOST or "db" }}" + port: "{{ POSTGRES_PORT or "5432" }}" cp_min: 5 cp_max: 10 {% else %} |