From 5dc69ddf7ca4faf0e4c4ef3ef5e52d2f3feaeb7e Mon Sep 17 00:00:00 2001 From: Melvin Chia Date: Fri, 26 Dec 2025 23:26:31 +0800 Subject: [PATCH] docs: add data persistence section for Docker setup --- .../contents/01.getting-started/02.Installation.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/src/contents/01.getting-started/02.Installation.mdx b/docs/src/contents/01.getting-started/02.Installation.mdx index b270fc07d..bbc8e4cf1 100644 --- a/docs/src/contents/01.getting-started/02.Installation.mdx +++ b/docs/src/contents/01.getting-started/02.Installation.mdx @@ -108,6 +108,19 @@ Once the containers are running, you can access LifeForge at: - **Database:** PocketBase (internal) Only port 80 is exposed externally. The API and database are accessible only within the Docker network. + +#### Data Persistence + +Database files are persisted to `./database/pb_data` on your host machine via Docker volume mounting. This is the same location used by manual local installation by default, allowing you to switch between Docker and local development while sharing the same data. + +This directory contains: + +- `data.db` - Main SQLite database +- `pb_migrations/` - Database migration files +- Other PocketBase data files + +Your data will persist across container restarts. To reset the database, simply delete the `./database/pb_data` directory and restart the containers. +