Once Docker is up and running, you can access pgAdmin by navigating to: localhost:5050
Log in using the credentials specified in your Docker environment:
- Email: Use the
PGADMIN_DEFAULT_EMAIL
defined in your.env
file - Password: Use the
PGADMIN_DEFAULT_PASSWORD
from the same configurations.
To manage your PostgreSQL database, you'll need to set up a new server connection in pgAdmin:
-
Name Your Server:
- Name:
TRANSCENDENCE
(or any name that helps you identify the server)
- Name:
-
Configure Connection Settings:
- Host name/address: Enter
db
as the host. Docker's internal DNS resolver automatically resolves this to the appropriate container IP address. - Port: Use the default PostgreSQL port
5432
.
- Host name/address: Enter
-
Authentication Details:
- Username: Specify the
POSTGRES_USER
from your.env
file. - Password: Use the
POSTGRES_PASSWORD
also defined in the.env
file.
- Username: Specify the
By following these steps, you will be able to connect to your PostgreSQL database through pgAdmin and start managing your database effectively.