mirror of
https://github.com/CoolnsX/selfhost.git
synced 2025-12-20 07:15:17 +05:30
Feat: dendrite server
This commit is contained in:
@@ -1,38 +1,43 @@
|
||||
services:
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres:15-alpine
|
||||
image: postgres:alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- $DATABASE_DIR:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
||||
- POSTGRES_USER=$POSTGRES_USER
|
||||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||
- POSTGRES_USER=dendrite
|
||||
- POSTGRES_DATABASE=dendrite
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U dendrite"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- nginx_proxy
|
||||
|
||||
synapse:
|
||||
container_name: synapse
|
||||
image: matrixdotorg/synapse:latest
|
||||
dendrite:
|
||||
container_name: dendrite
|
||||
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
|
||||
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
|
||||
networks:
|
||||
- nginx_proxy
|
||||
volumes:
|
||||
- ./synapse:/data
|
||||
depends_on:
|
||||
- postgres
|
||||
- ./config:/etc/dendrite
|
||||
- ./dendrite:/var/dendrite
|
||||
|
||||
element:
|
||||
container_name: element
|
||||
|
||||
Reference in New Issue
Block a user