feat: add Docker configuration files and self-deployment workflow

This commit is contained in:
yuanhau 2025-05-09 22:49:45 +08:00
parent e081c54624
commit 50846c91c2
4 changed files with 84 additions and 0 deletions

15
docker-compose.yml Executable file
View file

@ -0,0 +1,15 @@
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3