blob: 2a928217d8059e71e6fe55ed1e7bc7ee9c971b3d [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001version: "3"
2
3networks:
4 ves-hv-default:
5 external:
6 name: $CONTAINERS_NETWORK
7
8services:
9 zookeeper:
10 image: wurstmeister/zookeeper
11 ports:
12 - "2181:2181"
13 networks:
14 - ves-hv-default
15
16 kafka:
17 image: wurstmeister/kafka
18 ports:
19 - "9092:9092"
20 environment:
21 KAFKA_ADVERTISED_HOST_NAME: "kafka"
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
23 KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
24 KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
25 volumes:
26 - /var/run/docker.sock:/var/run/docker.sock
27 depends_on:
28 - zookeeper
29 networks:
30 - ves-hv-default
31
32 consul:
33 image: progrium/consul
34 ports:
35 - "8500:8500"
36 environment:
37 - CONSUL_BIND_INTERFACE=eth0
38 networks:
39 ves-hv-default:
40 aliases:
41 - consul
42 command: ["-server", "-bootstrap"]
43
44 ves-hv-collector:
45 image: ${DOCKER_REGISTRY_PREFIX}onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
46 ports:
47 - "6060:6060"
48 - "6061:6061/tcp"
49 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"]
50 command: ["--listen-port", "6061",
51 "--config-url", "http://consul:8500/v1/kv/veshv-config",
52 "--key-store-password", "onaponap",
53 "--trust-store-password", "onaponap"]
54 healthcheck:
55 interval: 10s
56 timeout: 5s
57 retries: 2
58 test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061"
59 depends_on:
60 - kafka
61 volumes:
62 - ./ssl/:/etc/ves-hv/
63 networks:
64 - ves-hv-default
65
66 unencrypted-ves-hv-collector:
67 image: ${DOCKER_REGISTRY_PREFIX}onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
68 ports:
69 - "7060:6060"
70 - "7061:6061/tcp"
71 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"]
72 command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config", "--ssl-disable"]
73 healthcheck:
74 interval: 10s
75 timeout: 5s
76 retries: 2
77 test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061"
78 depends_on:
79 - kafka
80 volumes:
81 - ./ssl/:/etc/ves-hv/
82 networks:
83 - ves-hv-default
84
85 dcae-app-simulator:
86 image: ${DOCKER_REGISTRY_PREFIX}onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest
87 ports:
88 - "6063:6063/tcp"
89 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"]
90 healthcheck:
91 interval: 10s
92 timeout: 5s
93 retries: 2
94 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
95 depends_on:
96 - kafka
97 networks:
98 ves-hv-default:
99 aliases:
100 - dcae-app-simulator