32 lines
588 B
YAML
32 lines
588 B
YAML
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
|