apex-site/compose.yaml

33 lines
882 B
YAML

services:
web-server:
image: nginx:1.23-alpine
volumes:
- ./public:/usr/share/nginx/html:ro
networks:
- proxy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s
timeout: 10s
retries: 10
start_period: 15s
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.apex_wiki_cafe.loadbalancer.server.port=80"
- "traefik.http.routers.apex_wiki_cafe.rule=Host(`wiki.cafe`)"
- "traefik.http.routers.apex_wiki_cafe.entrypoints=web-secure"
- "traefik.http.routers.apex_wiki_cafe.tls.certresolver=production"
- "caddy=https://wiki.cafe"
- "caddy.reverse_proxy={{upstreams 80}}"
- "caddy.tls.on_demand="
networks:
proxy:
external: true