Normalize compose host bind mount paths
This commit is contained in:
21
README.md
21
README.md
@@ -113,19 +113,26 @@ docker compose logs -f api worker
|
||||
|
||||
## Where Your Data Is Stored
|
||||
|
||||
LedgerDock stores data in Docker volumes so it survives container restarts:
|
||||
LedgerDock stores persistent runtime data in host bind mounts. By default the host root is `./data`, or set `DCM_DATA_DIR` to move it:
|
||||
|
||||
- `db-data` for PostgreSQL data
|
||||
- `redis-data` for Redis data
|
||||
- `dcm-storage` for uploaded files and app storage
|
||||
- `typesense-data` for the search index
|
||||
- `${DCM_DATA_DIR:-./data}/db-data` for PostgreSQL data
|
||||
- `${DCM_DATA_DIR:-./data}/redis-data` for Redis data
|
||||
- `${DCM_DATA_DIR:-./data}/storage` for uploaded files and app storage
|
||||
- `${DCM_DATA_DIR:-./data}/typesense-data` for the search index
|
||||
|
||||
If you switch to host bind mounts (for example under `./data/`), create those directories and grant write access to container runtime user `uid=10001` for backend storage paths.
|
||||
Before first run, create storage and grant write access to container runtime user `uid=10001`:
|
||||
|
||||
```bash
|
||||
mkdir -p ${DCM_DATA_DIR:-./data}/storage
|
||||
sudo chown -R 10001:10001 ${DCM_DATA_DIR:-./data}/storage
|
||||
sudo chmod -R u+rwX,g+rwX ${DCM_DATA_DIR:-./data}/storage
|
||||
```
|
||||
|
||||
To remove everything, including data:
|
||||
|
||||
```bash
|
||||
docker compose down -v
|
||||
docker compose down
|
||||
rm -rf ${DCM_DATA_DIR:-./data}
|
||||
```
|
||||
|
||||
Warning: this permanently deletes your LedgerDock data on this machine.
|
||||
|
||||
Reference in New Issue
Block a user