# Contains service overrides for local development, see https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/
# We want to only map ports in local development, as we can have conflicts in Jenkins if teams map on the same ports
services:
  local-ownership-rds:
    ports:
      - 3307:3306/tcp
  local-performance-rds:
    ports:
      - 3308:3306/tcp
  local-neo4j:
    ports:
      - 7474:7474
      - 7687:7687
    environment:
      NEO4J_server_memory_heap_initial__size: 256m
      NEO4J_server_memory_heap_max__size: 512m
      NEO4J_server_memory_pagecache_size: 256m
  service-integration:
    platform: linux/amd64
    # Runs the integration tests against a docker image built from the latest code (for local development)
    build:
      context: .
      target: deploy
      args:
        DOCKER_BUILDKIT: 1
      secrets:
        - GITHUB_NPM_TOKEN
    ports:
      - 8080:8080
    environment:
      # enables us to run the playground locally
      - APOLLO_INTROSPECTION=true
      - APOLLO_PLAYGROUND=true
