Commit b44135e
authored
chore(templates): fix postgres volume (#15157)
* from the docker hub readme:
Important Note: (for PostgreSQL 17 and below) Mount the data volume at
/var/lib/postgresql/data and not at /var/lib/postgresql because mounts
at the latter path WILL NOT PERSIST database data when the container is
re-created. The Dockerfile that builds the image declares a volume at
/var/lib/postgresql/data and if no data volume is mounted at that path
then the container runtime will automatically create an anonymous volume
that is not reused across container re-creations. Data will be written
to the anonymous volume rather than your intended data volume and won't
persist when the container is deleted and re-created.
### What?
Fixes database volume in docker compose for the postgres template.
### Why?
The latest major version of docker postgres is now v18.1 parent da27afc commit b44135e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments