Skip to content

Option to allow custom commands during startup. #1059

Closed
@TafkaMax

Description

@TafkaMax

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions