Sign inSign up

highcanfly/postgresql-ssl

By highcanfly

•Updated over 3 years ago

Alpine image with PostgreSQL 15 with SSL support

Image
0

2.4K

highcanfly/postgresql-ssl repository overview

⁠highcanly/postgresql-ssl image

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-----

⁠Code

https://github.com/highcanfly-club/docker-postgresql-ssl⁠

Tag summary

Content type

Image

Digest

sha256:5d694c57a…

Size

156.4 MB

Last updated

over 3 years ago

docker pull highcanfly/postgresql-ssl