Persist prayer data to a mounted Docker volume via Express API

Replaces localStorage with a JSON-file backend (server.js). Prayers are
stored in /data/prayers.json, which is mounted as a named Docker volume so
data survives container restarts and rebuilds. React fetches from /api/prayers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DReRqHxSYuVfCzTzQGD9hZ
This commit is contained in:
Claude committed 2026-07-18 16:20:17 +00:00
1 parent 1d37105e4b
commit 1b8e307d4c
6 files changed
+130 -54

No files matched your search

+6 -1
View File
@@ -2,4 +2,9 @@ services:
prayer:
build: .
ports:
- "3000:80"
- "3000:4000"
volumes:
- prayer-data:/data
volumes:
prayer-data: