fix: use IPv4 address in healthcheck to fix Traefik detection

The healthcheck was using localhost which resolves to IPv6 [::1],
but Next.js only listens on IPv4. Changed to 127.0.0.1.
Also removed deprecated 'version' key from docker-compose.yml.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-12-18 18:59:55 -05:00
parent 0c5f98b6fe
commit 584428d028
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
version: '3.8'
services:
mycrozine-web:
build:
@ -29,7 +27,7 @@ services:
networks:
- traefik-public
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
interval: 30s
timeout: 10s
retries: 3