Skip to content

Commit

Permalink
contrib/docker: Ensure correct encoding and locale settings on DB cre…
Browse files Browse the repository at this point in the history
…ation (matrix-org#6921)

Signed-off-by: Fridtjof Mund <[email protected]>
  • Loading branch information
fridtjof authored Feb 14, 2020
1 parent 97a42bb commit 32873ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6921.docker
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions contrib/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32873ef

Please sign in to comment.