TODO: write meaningful commit message

This commit is contained in:
CoolnsX
2025-01-06 01:47:36 +05:30
parent aff0d43136
commit b420ec07d9

View File

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