mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 14:32:30 +01:00
Support an external postgresql config in the Docker image
This commit is contained in:
parent
f2bf0cda02
commit
886c2d5019
1 changed files with 11 additions and 2 deletions
|
@ -46,8 +46,17 @@ listeners:
|
|||
|
||||
## Database ##
|
||||
|
||||
{% if SYNAPSE_DB_HOST %}
|
||||
|
||||
{% if SYNAPSE_DB_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" }}"
|
||||
cp_min: 5
|
||||
cp_max: 10
|
||||
{% else %}
|
||||
database:
|
||||
name: "sqlite3"
|
||||
|
|
Loading…
Reference in a new issue