Files
hdy/docker-compose.yml
2026-03-18 12:16:18 +08:00

22 lines
523 B
YAML

version: '3.8'
services:
hdy-monitor:
build:
context: .
dockerfile: Dockerfile
image: hdy-monitor:latest
container_name: hdy-monitor
ports:
- "${PORT:-3000}:3000"
restart: unless-stopped
environment:
- NODE_ENV=production
- PORT=3000
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