Files
whalehunting/docker-compose.yml
Thomas Richter 1e5f4f35cd Fix health check to use IPv4 address
- Change health check from localhost to 127.0.0.1
- Fixes connection refused error (localhost resolves to IPv6)
- Both Dockerfile and docker-compose.yml updated

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 04:58:13 +01:00

25 lines
512 B
YAML

version: '3.8'
services:
whalehunting-game:
build:
context: .
dockerfile: Dockerfile
image: whalehunting-game:latest
container_name: whalehunting-game
ports:
- "8880:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- whalehunting-network
networks:
whalehunting-network:
driver: bridge