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