connect to postgres database in docker container
$ docker exec -it postgres-container psql -U postgres
connect to postgres database in docker container
$ docker exec -it postgres-container psql -U postgres
postgresql not connected docker
# you must use port 5432 for host, if you use another port, database cannot connected
DATABASE_URI=postgres://<your username>:<your password>@postgresql:5432/db_name
services
postgresql:
container_name: postgresql
image: postgres
ports:
- '5432:5432'
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us