Problem with Prisma , Docker , Postgres and PgAdmin

when I run npx prisma migrate dev I get this (first image ) here is my DATABASE_URL="postgresql://moncef:moncef@postgres:5432/imenu-db?schema=public" and my docker-compose.yml file :
version: "3.8"
services:
postgres:
image: postgres:13.5
restart: always
environment:
- POSTGRES_USER=moncef
- POSTGRES_PASSWORD=moncef
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"

pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "8888:80"
environment:
- PGADMIN_DEFAULT_EMAIL=moncef@gmail.com
- PGADMIN_DEFAULT_PASSWORD=moncef
volumes:
- pgadmin-data:/var/lib/pgadmin

volumes:
postgres:
pgadmin-data:
version: "3.8"
services:
postgres:
image: postgres:13.5
restart: always
environment:
- POSTGRES_USER=moncef
- POSTGRES_PASSWORD=moncef
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"

pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "8888:80"
environment:
- PGADMIN_DEFAULT_EMAIL=moncef@gmail.com
- PGADMIN_DEFAULT_PASSWORD=moncef
volumes:
- pgadmin-data:/var/lib/pgadmin

volumes:
postgres:
pgadmin-data:
I am able to open pgadmin on localhost:8888 , login with credential, create a server but when I do npx prisma migrate I get the error in the image , plz help
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server