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:
.sql or .sh scripts on first launch.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: alwaysPOSTGRESQL_USERNAME=admin
POSTGRESQL_PASSWORD=your_super_secret_password
POSTGRESQL_DATABASE=my_databaseAuto-fetched about 11 hours ago