39 lines
929 B
YAML
39 lines
929 B
YAML
|
|
services:
|
||
|
|
family-planner:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
container_name: family-planner
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
ports:
|
||
|
|
- "${PORT:-3001}:3001"
|
||
|
|
|
||
|
|
environment:
|
||
|
|
# App
|
||
|
|
PORT: 3001
|
||
|
|
TZ: ${TZ:-America/New_York}
|
||
|
|
|
||
|
|
# File paths inside the container
|
||
|
|
DATA_DIR: /data
|
||
|
|
PHOTOS_DIR: /photos
|
||
|
|
|
||
|
|
# Drop privileges to this UID/GID (Unraid: nobody=99, users=100)
|
||
|
|
PUID: ${PUID:-99}
|
||
|
|
PGID: ${PGID:-100}
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
# Persistent database storage — map to wherever you keep appdata
|
||
|
|
- ${DATA_PATH:-./data}:/data
|
||
|
|
|
||
|
|
# Your photo library — mount read-only
|
||
|
|
# Change the left side to your actual photos folder path
|
||
|
|
- ${PHOTOS_PATH:-./photos}:/photos:ro
|
||
|
|
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/settings"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 10s
|