add deploy timeout and healthcheck without curl

This commit is contained in:
Moritz 2025-01-28 18:08:28 +01:00
parent 0d1bbfa99a
commit 4a4e536125

View File

@ -45,9 +45,10 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.6.1+3.10.1"
- "coop-cloud.${STACK_NAME}.version=0.7.0+3.11.2"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
test: "bash -c 'printf \"GET / HTTP/1.1\n\n\" > /dev/tcp/127.0.0.1/3000; exit $$?;'"
interval: 30s
timeout: 10s
retries: 10