multi container deployment : postgrace and pgadmin in two different container
service : service discovery for internal services
one postgres database which apps can connect to : pgadmin and postgracedb is connected
instance : 2 ec2 instance
load balancer: 2 ec2 instance configured for elb
docker compose git link :- https://github.com/ANISHSAJIKUMAR/docker_project2.git
Environments This Compose file contains the following environment variables:
POSTGRES_USER the default value is postgres
POSTGRES_PASSWORD the default value is changeme
PGADMIN_PORT the default value is 5050
PGADMIN_DEFAULT_EMAIL the default value is [email protected]
PGADMIN_DEFAULT_PASSWORD the default value is admin
Access to postgres: localhost:5432
Username: postgres (as a default)
Password: changeme (as a default)
Access to PgAdmin:
Username: [email protected] (as a default)
Password: admin (as a default)
Add a new server in PgAdmin:
Host name/address postgres
Port 5432
Username as POSTGRES_USER, by default: postgres
Password as POSTGRES_PASSWORD, by default changeme