added docker setup
This commit is contained in:
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user