diff --git a/app/Dockerfile b/app/Dockerfile index fc8b95f..47951e1 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -11,6 +11,7 @@ FROM node:${NODE_VERSION}-alpine # Use production node environment by default. ENV NODE_ENV production +# Change working directory WORKDIR /usr/src/app # Download dependencies as a separate step to take advantage of Docker's caching. diff --git a/app/config/keys.js b/app/config/keys.js index 9b88256..daa7f52 100644 --- a/app/config/keys.js +++ b/app/config/keys.js @@ -1,3 +1,3 @@ module.exports = { - mongoProdURI: 'mongodb://todo-database:27017/todoapp', + mongoProdURI: 'mongodb://todo-database:27018/todoapp', }; \ No newline at end of file diff --git a/app/package.json b/app/package.json index ea40357..e015236 100644 --- a/app/package.json +++ b/app/package.json @@ -5,7 +5,7 @@ "main": "app.js", "scripts": { "start": "node server.js", - "dev": "nodemon server.js -e js,ejs,mjs,cjs,json" + "dev": "nodemon server.js -e js,ejs,mjs,cjs,json -L" }, "author": "", "license": "ISC", diff --git a/compose.yaml b/compose.yaml index 629ed15..79d9d5a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -22,5 +22,6 @@ services: todo-database: image: mongo:6 + command: mongod --port 27018 ports: - - 27017:27017 \ No newline at end of file + - 27018:27018 \ No newline at end of file