fix: update health check command to use wget and fix 404 page handling in nginx configuration

This commit is contained in:
alam00000
2026-03-23 19:01:29 +05:30
parent a9e3128347
commit 0bf33ccd5b
2 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ services:
- '3000:8080'
restart: unless-stopped
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080']
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:8080']
interval: 30s
timeout: 10s
retries: 3
@@ -423,7 +423,7 @@ Image=ghcr.io/alam00000/bentopdf:latest
ContainerName=bentopdf
PublishPort=3000:8080
AutoUpdate=registry
HealthCmd=curl -f http://localhost:8080 || exit 1
HealthCmd=wget --spider -q http://localhost:8080 || exit 1
HealthInterval=30s
HealthTimeout=10s
HealthRetries=3