Files
awesome-app/docker-compose.yml

24 lines
647 B
YAML
Raw Normal View History

2025-10-25 23:24:49 +02:00
services:
awesome-app:
build:
context: .
dockerfile: Dockerfile
2025-10-26 02:05:34 +02:00
args:
# Set to true to include pre-built database in image
# Set to false to mount database at runtime
INCLUDE_DATABASE: false
2025-10-25 23:24:49 +02:00
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
2025-10-26 02:05:34 +02:00
# Mount SQLite database directory (used when INCLUDE_DATABASE=false)
2025-10-25 23:24:49 +02:00
- ./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