well-known-uris/compose.yml

46 lines
1.2 KiB
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
- source: matrix_client
target: /var/www/.well-known/matrix/client
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-uris.loadbalancer.server.port=80"
- "traefik.http.routers.well-known-uris.rule=(Host(`lumbung.space`) && PathPrefix(`/.well-known`))"
- "traefik.http.routers.well-known-uris.entrypoints=web-secure"
- "traefik.http.routers.well-known-uris.tls.certresolver=production"
configs:
matrix_server:
name: well_known_uris_matrix_server_v1
file: matrix/server
matrix_client:
name: well_known_uris_matrix_client_v1
file: matrix/client
matrix_conf:
name: well_known_uris_matrix_conf_v1
file: matrix/matrix.conf
networks:
proxy:
external: true
volumes:
public: