resource-watch/graph-client

View on GitHub
docker-compose-test.yml

Summary

Maintainability
Test Coverage
version: "3"
services:
  test:
    build: .
    ports:
      - "4500:4500"
    container_name: graph-test
    environment:
      NODE_ENV: test
      PORT: 4500
      NODE_PATH: app/src
      GATEWAY_URL: http://mymachine:9000
      MICROSERVICE_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
      LOCAL_URL: http://mymachine:3055
      NEO4J_URI: bolt://graph:7687
      NEO4J_USER:
      NEO4J_PASSWORD:
      FASTLY_ENABLED: "false"
      AWS_REGION: "us-east-1"
      REQUIRE_API_KEY: true
      AWS_ACCESS_KEY_ID: "test"
      AWS_SECRET_ACCESS_KEY: "test"
    command: test
    volumes:
      - ./app:/opt/graph-client/app
    depends_on:
      - graph

  graph:
    image: neo4j:3.2-enterprise
    environment:
      NEO4J_AUTH: none
      NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes"
    ports:
      - "7474"
      - "7687"
      - "7473"