matrix/compose.yaml

34 lines
841 B
YAML

---
services:
synapse:
image: matrixdotorg/synapse:latest
container_name: synapse
restart: unless-stopped
volumes:
- /app-config/matrix/synapse:/data
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
ports:
- "8008:8008"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8008/health"]
interval: 30s
timeout: 10s
retries: 3
element:
image: vectorim/element-web:latest
container_name: element
restart: unless-stopped
volumes:
- /app-config/matrix/element/config.json:/app/config.json:ro
ports:
- "8080:80"
coturn:
image: coturn/coturn:latest
container_name: coturn
restart: unless-stopped
network_mode: host
volumes:
- /app-config/matrix/coturn/turnserver.conf:/etc/coturn/turnserver.conf:ro