services: cashbook: build: . init: true # Rootless Docker maps container root to you, so files stay owned by you. # With rootful Docker, set CASHBOOK_USER=1000:1000 (your uid:gid) instead. user: "${CASHBOOK_USER:-0:0}" ports: - "127.0.0.1:8765:8765" volumes: # cashbooks and statements/ (uploads go there too) - ./data:/data # ANZ CSV exports, read-only - ${HOME}/Downloads/anz:/statements:ro restart: unless-stopped