prisma / prisma-examples

🚀 Ready-to-run Prisma example projects

Home Page:https://www.prisma.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mongo-single-replica: Error /usr/local/bin/docker-entrypoint.sh: line 407: -u: command not found

engkhsky opened this issue · comments

commented

I have this problem when running docker compose

/usr/local/bin/docker-entrypoint.sh: line 407: -u: command not found

I see the solution to the issue is to increase the waiting time but i increased to 10 and it is still unable to work
Below is my docker compose

mongodb:
image: prismagraphql/mongo-single-replica:4.4.3-bionic
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: prisma
INIT_WAIT_SEC: 10
ports:
- 27017:27017
networks:
- remix-list-app
volumes:
- mongo-data:/data/db

I'm having the same problem. Mongo can't be redeployed when a volume is attached.