summaryrefslogtreecommitdiffstats
path: root/docker-compose-db.yml
blob: da29fdd931af5d1460cbb398bf69d84804adb96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2'
services:
  aai.hbase.simpledemo.openecomp.org:
    image: ${HBASE_IMAGE}
    hostname: aai.hbase.simpledemo.openecomp.org
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"
  aai.gremlinserver.simpledemo.openecomp.org:
    image: ${GREMLIN_SERVER_IMAGE}
    hostname: aai.gremlinserver.simpledemo.openecomp.org
    environment:
      - SERVER_HOST=aai.hbase.simpledemo.openecomp.org
      - SERVER_TABLE=aaigraph.dev
      - GREMLIN_HOST=aai.gremlinserver.simpledemo.openecomp.org
    links: 
      - aai.hbase.simpledemo.openecomp.org
    ports: 
      - 8182:8182
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"

  aai.elasticsearch.simpledemo.openecomp.org:
    image: elasticsearch:2.4.1
    hostname: aai.elasticsearch.simpledemo.openecomp.org
    container_name: elasticsearch
    ports:
      - "9200:9200"
    volumes:
      - /opt/app/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
      - es-data:/usr/share/elasticsearch/data
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"

networks:
  default: 
      driver: bridge
      driver_opts:
        com.docker.network.driver.mtu: ${MTU}

volumes:
  es-data: