PostgreSQL (Bitnami)

Deploy a hardened, production-ready object-relational database with near-zero vulnerabilities. Easily configure replication, TLS, and LDAP using environment variables.

This container image provides a secure, production-ready environment for PostgreSQL, the advanced open-source object-relational database. It is designed for reliability and data integrity, making it suitable for a wide range of applications. As a Bitnami Secure Image, it is built on a minimal, hardened base with a focus on near-zero vulnerabilities and continuous security monitoring.

The image runs as a non-root user by default, adding a critical layer of security for production workloads. Deployment and management are simplified through extensive configuration options using environment variables. You can easily set up complex features without modifying configuration files directly.

Key capabilities include:

  • Replication: Configure master or slave nodes for high availability.
  • Security: Enable TLS for encrypted connections and integrate with LDAP for authentication.
  • Auditing: Utilize the built-in pgAudit extension to log database activity.
  • Customization: Automatically run your own .sql or .sh scripts on first launch.
  • Persistence: Ensure your data is safe by mounting a persistent volume.

Directory Structure

postgresql-bitnami
postgresql
postgresql-data
.env
docker-compose.yml

docker-compose.yml

services:
  postgresql:
    image: bitnami/postgresql:latest
    ports:
      - "5432:5432"
    environment:
      - POSTGRESQL_USERNAME=${POSTGRESQL_USERNAME}
      - POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD}
      - POSTGRESQL_DATABASE=${POSTGRESQL_DATABASE}
    volumes:
      - ./postgresql-data:/bitnami/postgresql
    restart: always

.env

POSTGRESQL_USERNAME=admin
POSTGRESQL_PASSWORD=your_super_secret_password
POSTGRESQL_DATABASE=my_database
Categories:

Share:

Ad
Favicon

 

  
 

Similar to PostgreSQL (Bitnami)

Favicon

 

  
  
Favicon

 

  
  
Favicon