Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 838 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 838 Bytes

Postgres docker compose

  1. Clone repo

git clone [email protected]:eiriksfa/ntnu-postgres.git

  1. Start dockerhub/docker service (if not running)
  2. When in repo folder, start docker compose

docker compose up -d

  1. Open browser and go to localhost:8080 and login to pgadmin

PgAdmin4 login

The username and password is defined in the docker-compose.yml file, under the pgadmin service. Default: [email protected] : ntnu

  1. Connect to postgres database (required fields are marked in red)

Database name (any)

Database registration 1

  • Hostname/address is the same as "container_name" of the postgresdb service.
  • username and password is defined in the environment part of postgresdb service in the docker-compose.yml file

Database registration 2