Alpine image with PostgreSQL 15 with SSL support
2.4K
This is a modified postgres:15-alpine image.
It adds the ssl support to the PostgreSQL 15 database server.
At least you need to define POSTGRES_PASSWORD.
If you don't provide POSTGRES_SSL_KEY and POSTGRES_SSL_CERT a valid self signed certificate will be generated at launch time.
Note that it will be replaced at each start.
If you want to provide your own key:
export POSTGRES_SSL_KEY=`cat server.key`
export POSTGRES_SSL_CRT=`cat server.crt`
Note that it is possible to import key and cert with a single line string by replacing \n by | .
Example:
-----BEGIN PRIVATE KEY-----|MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC6VtJoI7dkG9Pl|QkKPQKbVQ7g0+FiQEnNoHU0=|-----END PRIVATE KEY-----
Content type
Image
Digest
sha256:5d694c57a…
Size
156.4 MB
Last updated
over 3 years ago
docker pull highcanfly/postgresql-ssl