1
0

contrib/docker: Ensure correct encoding and locale settings on DB creation (#6921)

* commit '32873efa8':
  contrib/docker: Ensure correct encoding and locale settings on DB creation (#6921)
This commit is contained in:
Andrew Morgan
2020-03-23 17:48:23 +00:00
2 changed files with 4 additions and 0 deletions

1
changelog.d/6921.docker Normal file
View File

@@ -0,0 +1 @@
Databases created using the compose file in contrib/docker will now always have correct encoding and locale settings. Contributed by Fridtjof Mund.

View File

@@ -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