Files
pastel-ui/docker-compose.yml
Sebastian Krüger 61d2276fad fix: Docker healthcheck IPv6 connection refused
Changed healthcheck from localhost to 127.0.0.1 to force IPv4 connection.
The issue occurred because 'localhost' resolves to IPv6 (::1) but nginx
only listens on IPv4 by default, causing healthchecks to fail.

Error before fix:
  Connecting to localhost ([::1]:80)
  wget: can't connect to remote host: Connection refused

Updated both Dockerfile and docker-compose.yml for consistency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 09:12:30 +01:00

23 lines
462 B
YAML

version: '3.8'
services:
pastel-ui:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/valknarness/pastel-ui:latest
container_name: pastel-ui
ports:
- "80:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
default:
name: pastel-network