version: '2'

services:
  app:
    build: .
    command: npm start
    ports:
      - "5000:5000"
    volumes:
      - ./:/usr/src/graphiql-server
    depends_on:
      - redis
    environment:
      - GS_SESSION_SECRET
      - GS_SESSION_STORE=redis
      - GS_REDIS_TCP_ADDR=redis
      - GS_GRAPHQL_URL
      - GS_OAUTH2_AUTHORIZATION_URL
      - GS_OAUTH2_TOKEN_URL
      - GS_OAUTH2_CLIENT_ID
      - GS_OAUTH2_CLIENT_SECRET
    tty: true
    stdin_open: true

  redis:
    container_name: redis
    image: redis:alpine

version: '2'

services:
  app:
    build: .
    command: npm start
    ports:
      - "5000:5000"
    depends_on:
      - redis
    environment:
      - GS_SESSION_SECRET
      - GS_SESSION_STORE=redis
      - GS_REDIS_TCP_ADDR=redis
      - GS_GRAPHQL_URL
      - GS_OAUTH2_AUTHORIZATION_URL
      - GS_OAUTH2_TOKEN_URL
      - GS_OAUTH2_CLIENT_ID
      - GS_OAUTH2_CLIENT_SECRET
    tty: true
    stdin_open: true

  redis:
    container_name: redis
    image: redis:alpine

Remove volume mount from docker-compose sample config
Remove volume mount from docker-compose sample config

If the current folder mounted npm won’t find node_modules from the docker image so it worked only if you ran `npm install` without docker in the project