mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix(docker): слушать IPv6 в nginx — healthcheck на localhost уводил контейнер в unhealthy
This commit is contained in:
@@ -22,7 +22,9 @@ services:
|
||||
# Внутри контейнера nginx слушает на порту 80
|
||||
- '${CABINET_PORT:-3020}:80'
|
||||
healthcheck:
|
||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:80/']
|
||||
# 127.0.0.1 вместо localhost: localhost может резолвиться в [::1], и на
|
||||
# образах, где nginx слушает только IPv4, healthcheck ложно падает
|
||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/']
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user