Update README
This commit is contained in:
16
README.md
16
README.md
@@ -28,16 +28,16 @@ The easiest way to host the Cat Sitting Planner is via Docker.
|
|||||||
docker-compose up -d --build
|
docker-compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Persist Data
|
### 2. Persist & Backup Data (Important)
|
||||||
The database is stored in `/app/data/dev.db` inside the container. To persist your plans and bookings, map a volume to `/app/data`:
|
All coordination data is stored in a single SQLite file at `/app/data/dev.db` inside the container.
|
||||||
|
|
||||||
**Example `docker-compose.yml` volume:**
|
To ensure your plans are safe:
|
||||||
```yaml
|
1. **Always map a volume** to `/app/data`.
|
||||||
volumes:
|
2. **Backups**: Simply copy the `dev.db` file from your host path (e.g., `/mnt/user/appdata/csp/dev.db`).
|
||||||
- ./data:/app/data
|
3. **Upgrades**: As long as the volume mapping stays the same, your data will survive container updates.
|
||||||
```
|
4. **Moving Systems**: If you move the app, copy your existing `dev.db` into the new host data folder **before** starting the container.
|
||||||
|
|
||||||
If you are using Unraid or a custom path:
|
**Example `docker-compose.yml` volumes:**
|
||||||
```yaml
|
```yaml
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/user/appdata/csp:/app/data
|
- /mnt/user/appdata/csp:/app/data
|
||||||
|
|||||||
Reference in New Issue
Block a user