Commit 0502eec
committed
Fix database data loss after docker compose down (fixes #14358)
PostgreSQL 18 changed the default PGDATA path from /var/lib/postgresql/data
to /var/lib/postgresql/18/docker. The volume was mounted at the old path,
so data was stored in the container's ephemeral layer instead. Setting
PGDATA explicitly ensures data persists in the volume.1 parent 49a15e2 commit 0502eec
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
0 commit comments