summaryrefslogtreecommitdiffstats
path: root/demo/docker_files/__docker-compose.yml
blob: e19c2f6a78d1dccc10ae5b7fda2a7b2f88ae6fbf (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
51
52
53
54
55
version: '2'
networks:
  default:
    driver: bridge
    driver_opts:
      com.docker.network.driver.mtu: ${MTU}
services:
  zookeeper:
    image: wurstmeister/zookeeper
    ports:
      - "2181:2181"
    volumes:
      - ./data-zookeeper:/opt/zookeeper-3.4.9/data
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"

  kafka:
    image: wurstmeister/kafka:1.1.0
    ports:
      - "9092:9092"
    environment:
      #KAFKA_ADVERTISED_HOST_NAME: {{ ip.docker0 }}
      KAFKA_ADVERTISED_HOST_NAME: kafka
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
      KAFKA_BROKER_ID: 1
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./data-kafka:/kafka
      - ./start-kafka.sh:/start-kafka.sh
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"

  dmaap:
    image: ${NEXUS_DOCKER_REPO}/onap/dmaap/dmaap-mr:1.1.5
    ports:
      - "3904:3904"
      - "3905:3905"
    volumes:
      - ./MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties 
      - ./cadi.properties:/appl/dmaapMR1/etc/cadi.properties 
      - ./keystore.jks:/appl/dmaapMR1/bundleconfig/etc/keystore.jks 
    depends_on:
      - zookeeper
      - kafka
    logging:
      driver: "json-file"
      options:
        max-size: "30m"
        max-file: "5"