Feat: dendrite server

This commit is contained in:
coolnsx
2024-07-17 15:32:28 +05:30
parent 2958416e1f
commit 3559a28973

View File

@@ -1,38 +1,43 @@
services: services:
postgres: postgres:
container_name: postgres container_name: postgres
image: postgres:15-alpine image: postgres:alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- $DATABASE_DIR:/var/lib/postgresql/data - $DATABASE_DIR:/var/lib/postgresql/data
environment: environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD - POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=$POSTGRES_USER - POSTGRES_USER=dendrite
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C - POSTGRES_DATABASE=dendrite
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dendrite"]
interval: 5s
timeout: 5s
retries: 5
networks: networks:
- nginx_proxy - nginx_proxy
synapse: dendrite:
container_name: synapse container_name: dendrite
image: matrixdotorg/synapse:latest image: matrixdotorg/dendrite-monolith:latest
volumes:
- ./config:/etc/dendrite
# The following volumes use docker volumes, change this
# if you prefer to have those files outside of docker.
- dendrite_media:/var/dendrite/media
- dendrite_jetstream:/var/dendrite/jetstream
- dendrite_search_index:/var/dendrite/searchindex
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:
- ./synapse:/data - ./config:/etc/dendrite
depends_on: - ./dendrite:/var/dendrite
- postgres
element: element:
container_name: element container_name: element