Closed
Description
Is there a possiblity to add custom commands on startup?
I am battling the godforbidden riddance of permission rights for certificates. As I have an external cert I wish to mount to use TLS encryption. The problem is that the cert has root:ssl-cert rights, but the host and postgres container differ in the GID.
I wish to do groupmod -g GID_THAT_IS_IN_HOST ssl-cert
. So when I mount the private key with permissions 640 that the postgres user can read the file inside the container.
As the docker-entrypoint logic is only run during initalization, when there is no pgdata, on restarts this does not persist.
Metadata
Metadata
Assignees
Labels
No labels