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