matrix-synapse/compose.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2020-09-08 16:38:35 +00:00
---
version: "3.8"
services:
2020-10-29 17:45:42 +00:00
app:
2021-04-03 12:38:46 +00:00
image: "matrixdotorg/synapse:v1.9.1"
2020-09-08 16:38:35 +00:00
volumes:
2020-09-10 22:10:21 +00:00
- "synapse:/data"
2020-09-08 16:38:35 +00:00
environment:
- VIRTUAL_HOST=${DOMAIN}
- VIRTUAL_PORT=8008
- LETSENCRYPT_HOST=${DOMAIN}
- SYNAPSE_SERVER_NAME=${DOMAIN}
- SYNAPSE_REPORT_STATS=no
networks:
- proxy
2020-10-29 17:45:42 +00:00
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
2020-09-08 16:38:35 +00:00
deploy:
restart_policy:
condition: on-failure
delay: "60s"
max_attempts: 3
window: 120s
2020-10-29 17:45:42 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8008"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
2020-09-10 22:10:21 +00:00
2020-09-08 16:38:35 +00:00
volumes:
2020-09-10 22:10:21 +00:00
synapse:
2020-09-08 16:38:35 +00:00
networks:
proxy:
external: true
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang