- On docker host run following commands
- docker pull postgres:latest
- docker run -p 5432:5432 --name sample -e POSTGRES_PASSWORD=admin123 -d postgres
- Access postgres using local pgadmin
- Host: public ip of ec2
- Post: 5432
- User:postgres
- Password:admin123
-
-
Save brijesh-deb/6c8fd899ab7a33655f55c5b18cff0124 to your computer and use it in GitHub Desktop.
#docker #postgres
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment