feat: docker

This commit is contained in:
valknarness
2025-10-25 23:24:49 +02:00
parent b63592f153
commit b8866bf588
5 changed files with 221 additions and 0 deletions

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
services:
awesome-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
# Mount SQLite database directory
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s