This commit is contained in:
Philipp Rothmann 2021-12-13 17:33:55 +01:00
parent 86b21ebf4b
commit f289332637
5 changed files with 42 additions and 22 deletions

28
compose.yml Normal file
View file

@ -0,0 +1,28 @@
---
version: "3.8"
services:
app:
image: mydocs: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.${STACK_NAME}.loadbalancer.server.port=8000"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web"
networks:
proxy:
external: true