Files
sysadmingroup-website/docker-compose.yml
Dmitry Gusev 233af27773 fix: healthcheck — replace GNU-wget -I flag with --spider
BusyBox wget in alpine doesn't support -I flag, healthcheck was
failing with 'unrecognized option' and Docker reported container
as unhealthy despite nginx working correctly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 15:47:53 +03:00

22 lines
620 B
YAML

services:
sysadmingroup-ru:
build:
context: .
dockerfile: Dockerfile
image: sysadmingroup-ru:latest
container_name: sysadmingroup-ru
restart: unless-stopped
ports:
- "127.0.0.1:4083:8080"
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8080/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
# Деплой на web (45.10.53.206):
# - /opt/docker/sites/sysadmingroup-ru/ ← git clone сюда
# Команды:
# cd /opt/docker/sites/sysadmingroup-ru && git pull && docker compose build && docker compose up -d