Include legacy SQLite database for deployment
This commit is contained in:
+5
-3
@@ -1,7 +1,9 @@
|
||||
# Live application data - real phone numbers, employee names, login credentials, session key.
|
||||
# Never commit these. The Docker volume recreates this folder at deploy time.
|
||||
# Previous live-data location. Production now uses the PostgreSQL Docker volume.
|
||||
/TelcoPortal-data/
|
||||
/data/
|
||||
|
||||
# Track only the legacy import database; keep generated secrets and other local data private.
|
||||
/data/*
|
||||
!/data/telco.db
|
||||
|
||||
# Leftovers not meant to be tracked (see chat history for context).
|
||||
/_to_delete/
|
||||
|
||||
+2
-1
@@ -7,7 +7,8 @@ The Docker stack contains two services:
|
||||
|
||||
## First start and SQLite import
|
||||
|
||||
1. Put the existing SQLite database at `data/telco.db` next to `docker-compose.yml`.
|
||||
1. The legacy SQLite database is included at `data/telco.db`, so Git-based deployments receive
|
||||
the import source automatically.
|
||||
2. Optionally set a database password in a `.env` file:
|
||||
|
||||
```env
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user