version: "3.4"

services:
  neo4j:
    environment:
      - NEO4J_AUTH=none
    ports:
      - 7687:7687
      - 7474:7474
  webapp:
    build:
      context: webapp
      target: build-and-test
    volumes:
    #/nitro-web
       - ./webapp/coverage:/nitro-web/coverage
    environment:
      - GRAPHQL_URI=http://backend:4000
  backend:
    image: humanconnection/nitro-backend:builder
    build:
      context: backend
      target: builder
    volumes:
       - ./backend/coverage:/nitro-backend/coverage
    ports:
      - 4001:4001
      - 4123:4123

