2020-06-29 15:05:02 +00:00
|
|
|
---
|
|
|
|
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"
|
2020-06-30 08:01:28 +00:00
|
|
|
- "traefik.http.services.well-known-uris.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.well-known-uris.rule=(Host(`autonomic.zone`) && PathPrefix(`/.well-known`))"
|
|
|
|
- "traefik.http.routers.well-known-uris.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.well-known-uris.tls.certresolver=production"
|
2023-05-17 06:01:04 +00:00
|
|
|
- "traefik.http.routers.well-known-uris.priority=999"
|
2020-06-29 15:05:02 +00:00
|
|
|
|
|
|
|
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:
|