How to Connect to MongoDB During Docker Build for PayloadCMS + NextJs Deployment on a Single VPS? #12634
Unanswered
only-issues
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to deploy PayloadCMS + NextJs + MongoDB on the same VPS using Docker, but I encountered an issue: during the build process, it needs to connect to MongoDB, however the Dockerfile does not have the MongoDB network. What should I do?
docker-compose.prod.yml
:Dockerfile
:.env.production
:Error:
Beta Was this translation helpful? Give feedback.
All reactions