Why The Fuck?

This commit is contained in:
CoolnsX
2025-01-04 12:18:07 +05:30
parent f2a578d705
commit 7281df57c0

View File

@@ -7,30 +7,33 @@ services:
- $DATABASE_DIR:/var/lib/postgresql/data - $DATABASE_DIR:/var/lib/postgresql/data
environment: environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD - POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=dendrite - POSTGRES_USER=$POSTGRES_USER
- POSTGRES_DATABASE=dendrite - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dendrite"]
interval: 5s
timeout: 5s
retries: 5
networks: networks:
- nginx_proxy - nginx_proxy
dendrite: synapse:
container_name: dendrite container_name: synapse
image: matrixdotorg/dendrite-monolith:latest image: matrixdotorg/synapse:latest
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped restart: unless-stopped
environment: environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
- SYNAPSE_SERVER_NAME=$SYNAPSE_SERVER_NAME
- SYNAPSE_REPORT_STATS=yes
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_DB=$POSTGRES_DATABASE
- POSTGRES_HOST=postgres
- UID=$PUID
- GID=$PGID
- TZ=$TZ - TZ=$TZ
networks: networks:
- nginx_proxy - nginx_proxy
volumes: volumes:
- ./config:/etc/dendrite - ./synapse:/data
- ./dendrite:/var/dendrite depends_on:
- postgres
# command: migrate_config # uncomment this if running first time after filling values in .env
element: element:
container_name: element container_name: element