/postgres-ssl

This repository hosts a Docker image of the Alpine Postgres database server, but with automatic SSL certificates and authentication setup.

Primary LanguageDockerfile

Postgres SSL

The image built by this repository is based on the latest stable alpine postgres.

It will generate SSL certificates at build time and set them up.

The RSA modulus length used for certificate generation is 4096, and it all depends on the openssl library.

The docker-compose.yml file may be used to both build and start the image. It creates a db service with the built image.

It also includes the adminer service to let you test the database connection and verify the init.{sh,sql} was executed successfully.

You can configure your environment variable the same way you would by using postgres originally.

The build docker image will be named postgres:ssl so you can refer to it easily.