added docker setup

This commit is contained in:
2025-10-25 22:30:16 +02:00
parent cc28aa9a8e
commit 335c34ce64
5 changed files with 247 additions and 12 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
mealprep:
build:
context: .
dockerfile: Dockerfile
container_name: mealprep-app
ports:
- "8080:8080"
volumes:
- mealprep-data:/app/data
environment:
- DB_PATH=/app/data/mealprep.db
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:8080/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
mealprep-data:
driver: local