This is an easy to use docker configuration to set up postgres and pgAdmin.
- a Postgres 14 instance
- a pgAdmin 6 instance (bound to port
8032
) - a docker network named
postgres
- Clone this repo
- Copy
example.env
->.env
and adjust variables if necessary - Run
setup.sh
to fix permissions (this may need elevated permissions to run) docker-compose up
- Add any containers which need access to postgres to the
postgres
network
Containers in the postgres
network can reach the database at postgres:5432
.
pgAdmin is accessible on host port 8032
.