22 lines
628 B
YAML
22 lines
628 B
YAML
services:
|
|
next-app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3609:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- BALE_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
|
|
- BALE_CHAT_ID=6309891314
|
|
- TELEGRAM_CHAT_ID=6309891314
|
|
- TELEGRAM_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|