Files
selfhost/matrix/docker-compose.yml
2024-07-17 15:32:28 +05:30

54 lines
1.3 KiB
YAML

services:
postgres:
container_name: postgres
image: postgres:alpine
restart: unless-stopped
volumes:
- $DATABASE_DIR:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_USER=dendrite
- POSTGRES_DATABASE=dendrite
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dendrite"]
interval: 5s
timeout: 5s
retries: 5
networks:
- nginx_proxy
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:
- TZ=$TZ
networks:
- nginx_proxy
volumes:
- ./config:/etc/dendrite
- ./dendrite:/var/dendrite
element:
container_name: element
image: vectorim/element-web:latest
restart: unless-stopped
volumes:
- $ELEMENT_CONFIG_JSON:/app/config.json
networks:
- nginx_proxy
networks:
nginx_proxy:
external: true