The health check was failing because /health endpoint doesn't exist. Changed to check the root path (/) which serves the Vue app. This should prevent the container from restarting. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
582 B
YAML
28 lines
582 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
indeedhub:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: indeedhub-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "7777:7777"
|
|
environment:
|
|
- NODE_ENV=production
|
|
networks:
|
|
- indeedhub-network
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7777/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
indeedhub-network:
|
|
driver: bridge
|