matrix-synapse/compose.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-12 18:22:49 +00:00
---
2020-09-08 16:38:35 +00:00
version: "3.8"
2021-12-12 18:22:49 +00:00
2020-09-08 16:38:35 +00:00
services:
2020-10-27 07:47:59 +00:00
app:
2021-12-12 18:23:09 +00:00
image: "matrixdotorg/synapse:v1.48.0"
2020-09-08 16:38:35 +00:00
volumes:
- "data:/data"
environment:
- VIRTUAL_HOST=${DOMAIN}
- VIRTUAL_PORT=8008
- LETSENCRYPT_HOST=${DOMAIN}
- SYNAPSE_SERVER_NAME=${DOMAIN}
- SYNAPSE_REPORT_STATS=no
2020-10-27 07:48:06 +00:00
networks:
2020-09-08 16:38:35 +00:00
- proxy
2021-12-12 18:22:49 +00:00
entrypoint: /docker-entrypoint.sh
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
2020-09-08 16:38:35 +00:00
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8008"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
2021-12-12 18:47:43 +00:00
- "coop-cloud.${STACK_NAME}.version=0.1.0+v1.48.0"
2020-09-08 16:38:35 +00:00
restart_policy:
condition: on-failure
delay: "60s"
max_attempts: 3
window: 120s
2021-12-12 18:22:49 +00:00
2020-09-08 16:38:35 +00:00
volumes:
data:
2021-12-12 18:22:49 +00:00
2020-09-08 16:38:35 +00:00
networks:
proxy:
external: true
internal:
2021-12-12 18:22:49 +00:00
2020-09-08 16:38:35 +00:00
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang