Skip to content

matschik/docker-compose-postgres-pgadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Docker Compose for PostgreSQL and pgAdmin 🐳

A Docker Compose setup for running a PostgreSQL database and pgAdmin, a web-based administration tool for PostgreSQL.

Features 🌟

  • πŸš€ Easy Setup: One-command launch for both PostgreSQL and pgAdmin.
  • πŸ–₯️ Pre-configured pgAdmin: Quick access to pgAdmin with pre-set environment variables and automatic server configuration via entrypoint.sh.
  • πŸ”‘ No pgAdmin Login Page: When accessing pgAdmin, you are automatically logged in with the credentials you set in the .env file.
  • βš™οΈ Customizable: Easy to customize with your environment variables via the .env file.

Prerequisites πŸ› οΈ

  • Docker and Docker Compose installed on your machine.
  • Basic knowledge of Docker and PostgreSQL.

Getting Started πŸš€

  1. Clone the Repository

    git clone https://github.com/matschik/docker-compose-postgres-pgadmin.git
    cd docker-compose-postgres-pgadmin
  2. Set Up Environment Variables

    Copy the .env.example file to a new file named .env.

    cp .env.example .env

    Then edit the .env file to fill in your PostgreSQL and pgAdmin settings.

  3. Start Docker Compose

    Run the following command to start the services defined in compose.yaml:

    docker-compose up -d
  4. Access pgAdmin

    Open your web browser and go to http://localhost:[PGADMIN_PORT]. Log in using the credentials you set in the .env file.

Contents πŸ“

  • compose.yaml: A Docker Compose file to set up PostgreSQL and pgAdmin.
  • .env.example: An example environment file. Rename this to .env and fill in your desired values before starting your containers.
  • entrypoint.sh: A custom entrypoint script for pgAdmin to set up server connections automatically.

⚠️ Production Use Caution ⚠️

The pgAdmin setup provided in this repository, particularly with the use of the entrypoint.sh script, is intended for development or testing purposes and is not recommended for production environments. For production deployments, consider more secure and robust configuration practices.

Contributing 🀝

Contributions to the repository are welcome. Please fork the repository and submit a pull request with your changes.

License πŸ“œ

This project is licensed under the MIT License.

About

🐳 A Docker Compose setup for PostgreSQL and pgAdmin, ideal for development and testing environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages