mongo-single-replica: Error /usr/local/bin/docker-entrypoint.sh: line 407: -u: command not found
engkhsky opened this issue · comments
ZhuZhu 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
Dan Habot commented
I'm having the same problem. Mongo can't be redeployed when a volume is attached.