docs/compose.yml

29 lines
647 B
YAML
Raw Normal View History

2021-12-13 12:08:49 +01:00
---
version: "3.8"
services:
app:
2021-12-20 16:56:39 +01:00
image: yksflip/lit-docs:latest
2021-12-13 12:08:49 +01:00
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"
2021-12-13 17:33:55 +01:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web"
2021-12-13 12:08:49 +01:00
networks:
proxy:
external: true