Files
sales-trainer/Dockerfile
Macky 334ef4e00c fix(Docker): require persistent DATA_DIR volume; add VOLUME + README data-persistence warning
Root cause of re-login failing after first-run setup: on EasyPanel/w/o a volume, the
container's /app/backend/data (users, incl. the changed admin password) is wiped on every
recreate, so logging back in with the new password fails. Added:
- ENV DATA_DIR=/app/backend/data (explicit) + VOLUME declaration in Dockerfile
- README 'Data persistence' section: must mount a persistent volume to /app/backend/data

Verified: backend + live server login>setup>relogin-with-new-password works (200); the
failure is deployment data persistence, not login logic.
2026-08-07 20:20:42 +07:00

1.5 KiB