![]() Now, run the command docker-compose build to build the application. Replace the root password while configuring the docker-compose.yml. ME_CONFIG_MONGODB_ADMINPASSWORD=password database/production:/Databases/production database/dev.archive:/Databases/dev.archive Create the docker-compose.yml at the root of your project directory as shown below. In this step, we will configure and install MongoDB and Mongo Express using the official images. MacOS - How To Install Docker Desktop On Mac Ubuntu - How To Install Docker Engine on Ubuntu 20.04 LTS Optionally you may follow How To Change Docker Data Path On Windows 10. Windows - How To Install WSL 2 (Windows Subsystem for Linux) with Ubuntu On Windows 10 and How To Install Docker Desktop On Windows 10. ![]() This tutorial provides all the steps to containerize MySQL and phpMyAdmin using Docker containers. We can use Docker Containers to make our application portable so that we can simply move it to another system having docker. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.We can containerize our applications using Docker to have a separate installation of the required packages with the application-specific versions independent of the underlying operating system. (node:5072) DeprecationWarning: Unhandled promise rejections are deprecated. To terminate the node process on unhandled promise rejection, use the CLI flag -unhandled-rejections=strict (see ). This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with. (node:5072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. (D:\projects\SOS\podify\Server\api\node_modules\ts-node\src\bin.ts:513:3)Īt Object.Module._extensions.js (internal/modules/cjs/loader.js:1157:10) (D:\projects\SOS\podify\Server\api\node_modules\ts-node\src\index.ts:861:12)Īt Module.load (internal/modules/cjs/loader.js:985:32)Īt Function.Module._load (internal/modules/cjs/loader.js:878:14)Īt Function.executeUserEntryPoint (internal/modules/run_main.js:71:12)Īt main (D:\projects\SOS\podify\Server\api\node_modules\ts-node\src\bin.ts:227:14)Īt Object. (D:\projects\SOS\podify\Server\api\src\index.ts:21:3)Īt Module._compile (internal/modules/cjs/loader.js:1137:30)Īt Module.m._compile (D:\projects\SOS\podify\Server\api\node_modules\ts-node\src\index.ts:858:23)Īt Module._extensions.js (internal/modules/cjs/loader.js:1157:10)Īt. to restart at any time, enter rsĬonnection url => UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Authentication failed.Īt (D:\projects\SOS\podify\Server\api\node_modules\mongoose\lib\connection.js:828:32)Īt nnect (D:\projects\SOS\podify\Server\api\node_modules\mongoose\lib\index.js:335:15)Īt D:\projects\SOS\podify\Server\api\src\index.ts:10:20Īt Object. Npm run dev -prefix dev D:\projects\SOS\podify\Server\api Npm run dev D:\projects\SOS\podify\Server $ npm run up D:\projects\SOS\podify\Server I'm not really expecting a solution, but would like to know where to look to even understand what might be wrong. I really don't have experience with working on team projects and using other people's code, let alone Docker. This is the connection url in the end: am trying to get an Auth system that someone else made to work on my end(cloned the repo). UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Authentication failed. When I try to run a Docker container and connect to a local MongoDB database, it gives me this error:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |