Initial commit — Moon Household Budget
This commit is contained in:
32
moon-household-budget-handoff/docker/docker-compose.yml
Normal file
32
moon-household-budget-handoff/docker/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# Moon Household Budget — self-contained stack.
|
||||
# app : the Python web app (SQLite on the ./data volume — no DB container)
|
||||
# backup : rclone sidecar that snapshots ./data to Backblaze B2 on a loop
|
||||
#
|
||||
# Deployed on the Unraid NAS under /mnt/user/appdata/moon-household-budget/.
|
||||
# Bring up with: docker compose up -d --build
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
container_name: moon-household-budget
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8052:8000" # http://192.168.0.5:8052
|
||||
env_file: .env
|
||||
volumes:
|
||||
- ./data:/data # SQLite db + uploaded images live here
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:8000/", "||", "exit", "1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
backup:
|
||||
build:
|
||||
context: ../backup
|
||||
container_name: moon-budget-backup
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- ./data:/data:ro # read-only — backup never writes app data
|
||||
Reference in New Issue
Block a user