apex-site/compose.yaml

30 lines
764 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"
networks:
proxy:
external: true