version: '3'
services:
  neo4j:
      image: neo4j:3.3.0
      container_name: neo4j_amundsen
      environment:
        - NEO4J_AUTH=neo4j/test
        # These dont seem to be working though!
        - NEO4J_dbms.active_database=amundsen.db
        - NEO4J_dbms.directories.data=/neo4j/data
        - NEO4J_dbms.directories.logs=/var/log/neo4j
        - NEO4J_dbms.directories.import=/var/lib/neo4j/import
        - NEO4J_dbms.security.auth_enabled=false
        - NEO4J_dbms.connectors.default_listen_address=0.0.0.0
      ulimits:
        nofile:
          soft: 40000
          hard: 40000
      ports:
          - 7474:7474
          - 7687:7687
      logging:
        driver: awslogs
        options: 
          awslogs-group: amundsen-neo4j
          awslogs-region: us-west-2
          awslogs-stream-prefix: amundsen-neo4j

  elasticsearch:
      image: elasticsearch:6.7.0
      container_name: es_amundsen
      ports:
          - 9200:9200
      ulimits:
        nofile:
           soft: 65536
           hard: 65536
      logging:
        driver: awslogs
        options: 
          awslogs-group: amundsen-elasticsearch
          awslogs-region: us-west-2
          awslogs-stream-prefix: amundsen-elasticsearch

  amundsensearch:
      image: amundsendev/amundsen-search:1.1.1
      container_name: amundsensearch
      ports:
        - 5001:5000
      depends_on:
        - elasticsearch
      environment:
        - PROXY_ENDPOINT=es_amundsen
      logging:
        driver: awslogs
        options: 
          awslogs-group: amundsensearch
          awslogs-region: us-west-2
          awslogs-stream-prefix: amundsensearch

  amundsenmetadata:
      image: amundsendev/amundsen-metadata:1.0.7
      container_name: amundsenmetadata
      depends_on:
        - neo4j
      ports:
        - 5002:5000
      environment:
         - PROXY_HOST=bolt://neo4j_amundsen
      logging:
        driver: awslogs
        options: 
          awslogs-group: amundsenmetadata
          awslogs-region: us-west-2
          awslogs-stream-prefix: amundsenmetadata

  amundsenfrontend:
      image: amundsendev/amundsen-frontend:1.0.5
      container_name: amundsenfrontend
      depends_on:
        - amundsenmetadata
        - amundsensearch
      ports:
        - 5000:5000
      environment:
        - SEARCHSERVICE_BASE=http://amundsensearch:5000
        - METADATASERVICE_BASE=http://amundsenmetadata:5000
      logging:
        driver: awslogs
        options: 
          awslogs-group: amundsenfrontend
          awslogs-region: us-west-2
          awslogs-stream-prefix: amundsenfrontend


