docker compose run reuses the previously built tools image, so an upgrade could execute stale seed code against a newer schema. Include the explicit build step in quick start, production deployment, and update commands.
This commit is contained in:
@@ -104,6 +104,7 @@ cp .env.example .env
|
||||
# openssl rand -base64 32
|
||||
|
||||
docker compose up -d db
|
||||
docker compose --profile tools build migrate
|
||||
docker compose --profile tools run --rm migrate # migrations + seed
|
||||
docker compose up -d --build app
|
||||
```
|
||||
@@ -343,12 +344,15 @@ docker compose config --quiet
|
||||
|
||||
```bash
|
||||
docker compose up -d db
|
||||
docker compose --profile tools build migrate
|
||||
docker compose --profile tools run --rm migrate
|
||||
docker compose up -d --build app
|
||||
docker compose ps
|
||||
curl -fsS http://127.0.0.1:3000/api/health
|
||||
```
|
||||
|
||||
Rebuild `migrate` as shown; `docker compose run` reuses the last built tools image, so without the build step an update can run stale seed code against a newer schema.
|
||||
|
||||
`migrate` runs migrations **and the demo seed** (seeded services, sample volunteers, and `admin@glenloch.local`). The seed is idempotent. For a clean production dataset, sign in with the seeded admin, then edit the services and people in Admin; do not re-run the seed after customizing.
|
||||
|
||||
### 5. First sign-in and admin bootstrap
|
||||
@@ -500,6 +504,7 @@ Take a backup, then:
|
||||
```bash
|
||||
cd /opt/glenloch-media
|
||||
git pull --ff-only
|
||||
docker compose --profile tools build migrate
|
||||
docker compose --profile tools run --rm migrate
|
||||
docker compose up -d --build app
|
||||
docker compose ps
|
||||
|
||||
Reference in New Issue
Block a user