telegrambot/deploy/docker-compose.production.yml
alisaza a541075765
Some checks failed
CI / Typecheck and test (push) Failing after 1m36s
Deploy / Typecheck and test (push) Failing after 35s
Deploy / Deploy to VPS (push) Has been skipped
Add Gitea Actions CI/CD and production deploy scripts.
Wire typecheck/test on PR/push and SSH deploy to the foreign VPS on main.
2026-09-13 14:39:59 +03:30

25 lines
574 B
YAML

services:
telegram-relay:
build:
context: .
dockerfile: Dockerfile
container_name: ghabilee-telegram-relay
restart: unless-stopped
env_file:
- .env
ports:
# Only localhost — Nginx terminates TLS in front.
- '127.0.0.1:3100:3100'
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://127.0.0.1:3100/health').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s