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.