[PostgreSQL] docker compose for PostgreSQL and PGAdmin

Install Database on native/bare-metal / vm is quarrel and hard to manage dependency. Docker is the best way to install and completely remove. when are not used.

docker compose for PostgreSQL and PGAdmin

  • Create a directory and docker-compose.yaml file within the directory
mkdir postgres-docker
cd postgres-docker
nano docker-compose.yaml
  • docker-compose.yaml

You can modify port / environment, by reading Container Document.

  • run PostgreSQL and PGAdmin in the detached mode by this command
docker compose up -d

Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts to your email.