Files
DDUp/docker-compose.yml

23 lines
548 B
YAML
Raw Normal View History

# 本地开发环境配置
# 使用方式: docker-compose up
# 生产环境请使用: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
2026-01-22 12:57:26 +08:00
services:
vitals:
build: .
ports:
- "8888:8080"
2026-01-22 12:57:26 +08:00
volumes:
- ./data:/app/data
env_file:
- .env.local
2026-01-22 12:57:26 +08:00
environment:
# 环境标识
- ENVIRONMENT=${ENVIRONMENT:-development}
2026-01-22 12:57:26 +08:00
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/today"]
interval: 30s
timeout: 10s
retries: 3