docs.coopcloud.tech/compose.yml
2021-06-17 21:09:29 +02:00

32 lines
1.1 KiB
YAML

---
version: "3.8"
services:
app:
image: thecoopcloud/docs.coopcloud.tech:latest
networks:
- proxy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
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.coop-cloud-mkdocs.loadbalancer.server.port=8000"
- "traefik.http.routers.coop-cloud-mkdocs.rule=Host(`docs.coopcloud.tech`, `www.docs.coopcloud.tech`, `docs.cloud.autonomic.zone`, `www.docs.cloud.autonomic.zone`)"
- "traefik.http.routers.coop-cloud-mkdocs.entrypoints=web-secure"
- "traefik.http.routers.coop-cloud-mkdocs.tls.certresolver=production"
- "traefik.http.routers.coop-cloud-mkdocs.middlewares=coop-cloud-mkdocs-redirect"
- "traefik.http.middlewares.coop-cloud-mkdocs-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.coop-cloud-mkdocs-redirect.headers.SSLHost=docs.coopcloud.tech"
networks:
proxy:
external: true