Using Mongo through Docker on Apple Silicon
Has anyone successfully run Mongo using Docker on Apple Silicon? I'm getting some weird behavior when launching a container.
When I run a basic Mongo container it starts up fine, but then my
prisma db push
fails with the following error:
I read this is cause prisma needs a replication set, but when i add that to my compose file, the container doesn't want to initialize, and I get this in a continous loop:
This is the compose setup:
Any ideas? Anyone got prisma+mongo+docker to play nice?
PS: Not my choice to use Mongo18 Replies
What mongo version
tried a few, latest, 4, 5
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i've been trying out different versions of this but everything fails with authentication errors. so frustrated with this so at this point i'm just looking and testing out different compose files and none are working
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Maybe just the creds are wrong then?
how about a different database?
why not? come on, give it a try! SQL is great!
Oh I know, I use SQL whenever I can, but this isn’t my project
had to ask, sorry
no hard feelings
❤️🔥
i had the same situation a while ago, and gave up / ended up "solving" it by developing on a mongodb atlas instance
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yea tried that one too, still not working
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
changed mongo to mongosh
other than that seem to have worked :0. now just need to put that in a compose file
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i'll just create a bash file with the second command for now
thanks
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View