47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
services:
|
|
matrix-synapse:
|
|
container_name: matrix-synapse
|
|
image: matrixdotorg/synapse:v1.85.2
|
|
restart: unless-stopped
|
|
environment:
|
|
- SYNAPSE_SERVER_NAME=bhasher.com
|
|
- SYNAPSE_REPORT_STATS=no
|
|
volumes:
|
|
- $DATA/matrix/synapse:/data:rw
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.matrix-synapse.rule=Host(`matrix.bhasher.com`)"
|
|
- "traefik.http.routers.matrix-synapse.tls=true"
|
|
- "traefik.http.routers.matrix-synapse.tls.certresolver=http"
|
|
- "traefik.http.routers.matrix-synapse.entrypoints=internalsecure,externalsecure"
|
|
- "traefik.http.services.matrix-synapse.loadbalancer.server.port=8008"
|
|
networks:
|
|
- external
|
|
|
|
matrix-riot:
|
|
container_name: matrix-element
|
|
image: ghcr.io/bubuntux/element-web
|
|
restart: unless-stopped
|
|
volumes:
|
|
- $CONFIG/riot/config.json:/etc/element-web/config.json:ro
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.matrix-riot.rule=Host(`element.bhasher.com`)"
|
|
- "traefik.http.routers.matrix-riot.tls=true"
|
|
- "traefik.http.routers.matrix-riot.tls.certresolver=http"
|
|
- "traefik.http.routers.matrix-riot.entrypoints=internalsecure,externalsecure"
|
|
- "traefik.http.services.matrix-riot.loadbalancer.server.port=80"
|
|
networks:
|
|
- external
|
|
|
|
|
|
networks:
|
|
external:
|
|
external: true
|