diff options
author | Fridtjof Mund <2780577+fridtjof@users.noreply.github.com> | 2020-02-14 17:27:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 16:27:29 +0000 |
commit | 32873efa87055518b08d9b3b001b3bf9b60437f9 (patch) | |
tree | 05347e2301e6ae04cbd32f4103b15aafe347be6b /contrib | |
parent | Add a warning about indentation to generated config (#6920) (diff) | |
download | synapse-32873efa87055518b08d9b3b001b3bf9b60437f9.tar.xz |
contrib/docker: Ensure correct encoding and locale settings on DB creation (#6921)
Signed-off-by: Fridtjof Mund <fridtjof@das-labor.org>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/docker/docker-compose.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/docker/docker-compose.yml b/contrib/docker/docker-compose.yml index 2b044baf78..5df29379c8 100644 --- a/contrib/docker/docker-compose.yml +++ b/contrib/docker/docker-compose.yml @@ -56,6 +56,9 @@ services: environment: - POSTGRES_USER=synapse - POSTGRES_PASSWORD=changeme + # ensure the database gets created correctly + # https://github.com/matrix-org/synapse/blob/master/docs/postgres.md#set-up-database + - POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=C --lc-ctype=C" volumes: # You may store the database tables in a local folder.. - ./schemas:/var/lib/postgresql/data |