summaryrefslogtreecommitdiffstats
path: root/docker-compose-db.yml
blob: 7b4802a1253d7568d6af7c7b67ec2efc24a6ceda (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
version: '2'
services:
  aai.hbase.simpledemo.onap.org:
    image: cassandra:2.1
    hostname: aai.hbase.simpledemo.onap.org
    ports:
      - 7000:7000
      - 7001:7001
      - 7199:7199
      - 9042:9042
      - 9160:9160
    network_mode: "host"
    environment:
      - CASSANDRA_SEEDS=aai.hbase.simpledemo.onap.org
      - CASSANDRA_DC=Heat
      - CASSANDRA_RACK=Rack1
      - CASSANDRA_AUTO_BOOTSTRAP=true
    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/test-config/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: