This image provides a pgAdmin with automatic database connection configuration for simplified setup
749
This repository provides a Docker setup for pgAdmin with automatic database connection configuration and simplified authentication. It's designed to streamline the development and testing process with PostgreSQL.
Report Bugโ
ยท
Request Featureโ
This project hosts a Dockerized setup for pgAdmin that automates the addition of a database host and simplifies the login process, making it easier to get started with PostgreSQL for development and testing purposes.
Please note this project bypasses a lot of security features that pgAdmin implements and should therefore never be exposed to the public internet.
To get started with this Dockerized pgAdmin setup, you'll need to configure a few environment variables. Here are the variables and their default values:
DATABASE_HOST - Hostname or IP Address of the server to add (default postgres)
DATABASE_PORT - Port of the server to add (default 5432)
DATABASE_USERNAME - Username or role name to use to access the server (default postgres)
DATABASE_PASSWORD - Password for user / role (default password)
docker run -d -p 80:80 -e DATABASE_HOST=your_database_host -e DATABASE_PASSWORD=your_database_password rorylshanks/pgadmin4-auto-login:latest
or as a docker-compose.yaml file
version: '3.8'
services:
pgadmin:
image: rorylshanks/pgadmin4-auto-login:latest
environment:
DATABASE_HOST: postgres
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: password
ports:
- "80:80" # Expose pgAdmin on port 80 of the host
depends_on:
- postgres
restart: always
postgres:
image: postgres:latest
environment:
POSTGRES_PASSWORD: password
restart: always
Now, pgAdmin should be running and accessible on http://localhost:80, with the database connection already configured. There should be no login prompt and the server specified should be automatically available.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Distributed under the MIT License. See LICENSE for more information.
This project adapts the official pgAdmin Docker setup for easier configuration and setup in development environments.
Content type
Image
Digest
sha256:1462a0d17โฆ
Size
165.2 MB
Last updated
over 1 year ago
docker pull rorylshanks/pgadmin4-auto-login