From 93a91c7ff53941f3b40848b309b4deb825d4915c Mon Sep 17 00:00:00 2001 From: Dharmjeet Kumar Date: Mon, 9 Nov 2020 22:56:00 +0530 Subject: [PATCH] Corrected Indentation in docker-compose.dev.yml It didn't use the volumes as parameter, instead it defined a service called volumes and services don't have a parameter called mongodb. Corrected indentation in yml file --- get-started/nodejs/develop.md | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/get-started/nodejs/develop.md b/get-started/nodejs/develop.md index 40ab798483..968b813d5f 100644 --- a/get-started/nodejs/develop.md +++ b/get-started/nodejs/develop.md @@ -27,28 +27,28 @@ version: '3.8' services: notes: - build: - context: . - ports: - - 8080:8080 - - 9229:9229 - environment: - - SERVER_PORT=8080 - - DATABASE_CONNECTIONSTRING=mongodb://mongo:27017/notes - volumes: - - ./:/code - command: npm run debug + build: + context: . + ports: + - 8080:8080 + - 9229:9229 + environment: + - SERVER_PORT=8080 + - DATABASE_CONNECTIONSTRING=mongodb://mongo:27017/notes + volumes: + - ./:/code + command: npm run debug mongo: - image: mongo:4.2.8 - ports: - - 27017:27017 - volumes: - - mongodb:/data/db - - mongodb_config:/data/configdb - volumes: - mongodb: - mongodb_config: + image: mongo:4.2.8 + ports: + - 27017:27017 + volumes: + - mongodb:/data/db + - mongodb_config:/data/configdb +volumes: + mongodb: + mongodb_config: ``` This Compose file is super convenient as we do not have to type all the parameters to pass to the `docker run` command. We can declaratively do that in the Compose file.