well-known-uris/compose.yml

41 lines
994 B
YAML

---
version: "3.8"
services:
nginx:
image: "nginx:stable"
configs:
- source: matrix_conf
target: /etc/nginx/conf.d/matrix.conf
- source: matrix_server
target: /var/www/.well-known/matrix/server
volumes:
- "public:/var/www/app/public"
networks:
- proxy
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.well_known.loadbalancer.server.port=80"
- "traefik.http.routers.well_known.rule=(Host(`autonomic.zone`) && PathPrefix(`/.well-known`))"
- "traefik.http.routers.well_known.entrypoints=web-secure"
- "traefik.http.routers.well_known.tls.certresolver=production"
configs:
matrix_server:
name: well_known_matrix_server_v1
file: matrix/server
matrix_conf:
name: well_known_matrix_conf_v1
file: matrix/matrix.conf
networks:
proxy:
external: true
volumes:
public: