Replace named volume with direct bind mount to /media/ZimaOS-HD/AppData/Prayer/Data so data survives container recreation without relying on Docker volume management.
19 lines
416 B
YAML
19 lines
416 B
YAML
services:
|
|
prayer:
|
|
image: ghcr.io/nmemmert/prayer:latest
|
|
build:
|
|
context: .
|
|
ports:
|
|
- "3000:4000"
|
|
volumes:
|
|
- /media/ZimaOS-HD/AppData/Prayer/Data:/data
|
|
environment:
|
|
- DATA_DIR=/data
|
|
- PORT=4000
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:4000/api/prayers"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|