Files
khb_microservices/deploy/compose.tmpl.yaml
Yuri Yaryshev ebb1cb7950
Some checks failed
ci / test (push) Failing after 20s
ci / deploy (push) Has been skipped
Каркас monorepo: scheduler, data_collector, khbuild_assistant_prep, khb_common; миграции; CI/CD
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 09:44:55 +03:00

27 lines
773 B
YAML

name: __SERVICE__
services:
app:
image: khb-microservices:${IMAGE_TAG}
container_name: __SERVICE__
restart: unless-stopped
command: ["node", "packages/__PACKAGE__/dist/main.js"]
volumes:
- /y/services/khb-config/settings.json5:/config/settings.json5:ro
ports:
- "127.0.0.1:__PORT__:__PORT__"
networks: [khb-net, supabase_default]
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:__PORT__/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
logging:
driver: json-file
options: { max-size: "10m", max-file: "5" }
networks:
khb-net:
external: true
supabase_default:
external: true