version: "3"
services:
    web:
        build: .
        command: npm run dev
        volumes:
            - ".:/home/app/gettingtoknow-graphql"
            - "/home/app/gettingtoknow-graphql/node_modules"
        ports:
            - "8080:8080"
        links:
            - db
    db:
        image: mongo
        ports:
            - "27017:27017"

version: "3"
services:
    api:
        build: .
        command: npm run dev
        volumes:
            - ".:/home/app/gettingtoknow-graphql"
            - "/home/app/gettingtoknow-graphql/node_modules"
        ports:
            - "8080:8080"
        links:
            - db
    db:
        image: mongo
        ports:
            - "27017:27017"

Rename node container from web to api
Rename node container from web to api
