summary refs log tree commit diff
path: root/contrib/docker/conf/homeserver.yaml
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-02-04 15:04:26 +0100
committerkaiyou <pierre@jaury.eu>2018-02-04 15:04:26 +0100
commita207cccb059451682564cddf0e39c7c45b06cb72 (patch)
treeb6ea40380ac21e762b95580a2b58f166e6180485 /contrib/docker/conf/homeserver.yaml
parentProvide an example docker compose file (diff)
downloadsynapse-a207cccb059451682564cddf0e39c7c45b06cb72.tar.xz
Reuse environment variables of the postgres container
Diffstat (limited to 'contrib/docker/conf/homeserver.yaml')
-rw-r--r--contrib/docker/conf/homeserver.yaml12
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 %}