Cannot connect prisma Postgress in Docker container
HelLo I am using Nextjs and running postgress in docker container, and Here is my docker compose file
services:
postgres:
image: postgres:latest
container_name: database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: deero
ports:
- 5433:5432
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
and Here is my DATABASE_URL in the evn file
DATABASE_URL="postgresql://postgres:password@localhost:5433/deero"
and I am getting this erro, and Have read a lot github isue and I could not solve really
P1000: Authentication failed against database server, the provided database credentials for postgres are not valid.
Please make sure to provide valid database credentials for the database server at the configured address.Solution:Jump to solution
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai channel awaits if you're curious!1 Reply
Solution
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai channel awaits if you're curious!