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.
- PostgreSQL: postgres - Official Image | Docker Hub
- pgAdmin: Container Deployment — pgAdmin 4 8.3 documentation
- 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 sent to your email.


