mirror of
https://github.com/CoolnsX/selfhost.git
synced 2025-12-20 07:15:17 +05:30
TODO: write meaningful commit message
This commit is contained in:
@@ -5,12 +5,15 @@ services:
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- $DATABASE_DIR:/var/lib/postgresql/data
|
||||
- ./.socket:/tmp/matrix
|
||||
user: "70:1000"
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||
networks:
|
||||
- nginx_proxy
|
||||
command: postgres -c unix_socket_directories='/var/run/postgresql/,/tmp/matrix/' -c unix_socket_permissions=0770
|
||||
|
||||
synapse:
|
||||
container_name: synapse
|
||||
@@ -23,7 +26,7 @@ services:
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_DB=$POSTGRES_DATABASE
|
||||
- POSTGRES_HOST=postgres
|
||||
- POSTGRES_HOST=/tmp/matrix
|
||||
- UID=$PUID
|
||||
- GID=$PGID
|
||||
- TZ=$TZ
|
||||
@@ -31,6 +34,7 @@ services:
|
||||
- nginx_proxy
|
||||
volumes:
|
||||
- ./synapse:/data
|
||||
- ./.socket:/tmp/matrix
|
||||
depends_on:
|
||||
- postgres
|
||||
# command: migrate_config # uncomment this if running first time after filling values in .env
|
||||
|
||||
Reference in New Issue
Block a user