Question about "/var/lib/postgresql/data" volume #96
-
Hi, have a little question. I have actually this compose file:
I checked performing a manually backup and it works. I just don't understand why a new volume is created with the container, pointing to Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
This volume is created by the parent docker image (the official postgresql docker image). |
Beta Was this translation helpful? Give feedback.
-
Strange, here is a detailed view from portainer: I named the volume in my compose so when i look at it i know what it is. From my compose:
|
Beta Was this translation helpful? Give feedback.
-
Also here you can see that the "paperless-ng_db" container has its own bind mount for |
Beta Was this translation helpful? Give feedback.
-
Please read the docker files I attach here. This project imports the official postgresql docker image, and this last docker image is the one that creates the volume you are asking. But this repository makes no use of the volume you are asking, it only uses the postgresql cli programs, don't start any postgresql server. |
Beta Was this translation helpful? Give feedback.
-
Thanks. So it's normal to have that volume in this image. Correct? |
Beta Was this translation helpful? Give feedback.
-
Yes, it it will never be used. |
Beta Was this translation helpful? Give feedback.
Please read the docker files I attach here.
This project imports the official postgresql docker image, and this last docker image is the one that creates the volume you are asking.
But this repository makes no use of the volume you are asking, it only uses the postgresql cli programs, don't start any postgresql server.