Skip to content
Snippets Groups Projects
Unverified Commit 32873efa authored by Fridtjof Mund's avatar Fridtjof Mund Committed by GitHub
Browse files

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

parent 97a42bbc
No related branches found
No related tags found
No related merge requests found
Databases created using the compose file in contrib/docker will now always have correct encoding and locale settings. Contributed by Fridtjof Mund.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment