Fix backlog-aggregator healthcheck: use bun instead of wget, increase start_period
The oven/bun:1 image doesn't include wget, causing healthchecks to always fail. Switched to bun-based fetch check and increased start_period from 60s to 300s to allow time for Gitea repo scanning on startup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9931fa4105
commit
5112b20dce
|
|
@ -13,7 +13,7 @@ services:
|
|||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:6420/').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
start_period: 60s
|
||||
start_period: 300s
|
||||
retries: 3
|
||||
volumes:
|
||||
# Mount all project directories that contain backlog folders
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ services:
|
|||
- /opt/websites:/projects/websites
|
||||
- /opt/apps:/projects/apps
|
||||
- /opt/gitea-repos:/projects/gitea
|
||||
- /opt/infisical/entrypoint-wrapper.sh:/infisical-entrypoint.sh:ro
|
||||
entrypoint: ["/infisical-entrypoint.sh"]
|
||||
command: ["/app/entrypoint.sh"]
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.backlog.rule=Host(`backlog.jeffemmett.com`)"
|
||||
|
|
@ -17,17 +20,21 @@ services:
|
|||
- "traefik.http.services.backlog.loadbalancer.server.port=6420"
|
||||
- "traefik.docker.network=traefik-public"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:6420/"]
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:6420/').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
start_period: 300s
|
||||
networks:
|
||||
- traefik-public
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- PORT=6420
|
||||
- INFISICAL_CLIENT_ID=${INFISICAL_CLIENT_ID}
|
||||
- INFISICAL_CLIENT_SECRET=${INFISICAL_CLIENT_SECRET}
|
||||
- INFISICAL_PROJECT_SLUG=backlog-md
|
||||
- INFISICAL_URL=http://infisical:8080
|
||||
- NODE_ENV=production
|
||||
- GITEA_URL=https://gitea.jeffemmett.com
|
||||
- GITEA_OUTPUT_DIR=/projects/gitea
|
||||
|
|
|
|||
Loading…
Reference in New Issue