创建
Some checks failed
构建并运行 Docker / build (push) Failing after 5m1s

This commit is contained in:
2025-07-29 13:52:36 +08:00
parent 64a947f435
commit e6fa94efa0
7 changed files with 160 additions and 5 deletions

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
services:
watch-stock-list:
image: watch-stock-list:latest
container_name: watch-stock-list-app
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- HOSTNAME=0.0.0.0
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s