The healthcheck tried HTTPS first (curl -fsk https://...) when HTTPS was disabled. The TLS ClientHello to a plain HTTP listener hung the sync worker indefinitely. With 2 workers, both got stuck, blocking all real HTTP requests. Fix: try HTTP first, add --max-time 3 to release quickly on failure. Compose override uses HTTP-only to match HTTPS_ENABLED=false default. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
851 B
YAML
34 lines
851 B
YAML
services:
|
|
soosef:
|
|
build:
|
|
context: ../.. # Sources/ directory (contains stegasoo/, verisoo/, soosef/)
|
|
dockerfile: soosef/docker/Dockerfile
|
|
container_name: soosef
|
|
ports:
|
|
- "35811:35811"
|
|
environment:
|
|
SOOSEF_DATA_DIR: /root/.soosef
|
|
SOOSEF_PORT: "35811"
|
|
SOOSEF_WORKERS: "2"
|
|
SOOSEF_HTTPS_ENABLED: "${SOOSEF_HTTPS_ENABLED:-false}"
|
|
STEGASOO_CHANNEL_KEY: "${STEGASOO_CHANNEL_KEY:-}"
|
|
volumes:
|
|
- soosef-data:/root/.soosef
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fs", "--max-time", "3", "http://localhost:35811/"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 15s
|
|
retries: 3
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 2048M
|
|
reservations:
|
|
memory: 512M
|
|
|
|
volumes:
|
|
soosef-data:
|
|
driver: local
|