1.0.0 - docker add

This commit is contained in:
2025-07-20 15:59:15 -07:00
parent 9014dc87f1
commit 3512304956
2 changed files with 28 additions and 0 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
# Build
build/
# Logs
logs
*.log

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: "3.8"
services:
status-monitor:
build: .
container_name: status-monitor
restart: unless-stopped
ports:
- "3001:3001"
environment:
- NODE_ENV=production
volumes:
- ./data:/app/data # 持久化数据
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
cpus: "1"
memory: 512M