blob: 1673715cb7d4106445f3e8e5fd1b773347e7647f [file] [log] [blame]
Filip Krzywka93185782018-08-06 09:31:40 +02001version: "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:
Jakub Dudycz84e5c252018-09-03 14:15:55 +020045 image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
Filip Krzywka93185782018-08-06 09:31:40 +020046 ports:
Jakub Dudycz84e5c252018-09-03 14:15:55 +020047 - "6060:6060"
Filip Krzywka93185782018-08-06 09:31:40 +020048 - "6061:6061/tcp"
49 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"]
50 command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config"]
Jakub Dudycz84e5c252018-09-03 14:15:55 +020051 healthcheck:
52 interval: 10s
53 timeout: 5s
54 retries: 2
55 test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061"
Filip Krzywka93185782018-08-06 09:31:40 +020056 depends_on:
57 - kafka
58 volumes:
59 - ./ssl/:/etc/ves-hv/
60 networks:
61 - ves-hv-default
62
Filip Krzywka86ef3952018-09-11 12:09:06 +020063 unencrypted-ves-hv-collector:
64 image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
65 ports:
66 - "7060:6060"
67 - "7061:6061/tcp"
68 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"]
69 command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config", "--ssl-disable"]
70 healthcheck:
71 interval: 10s
72 timeout: 5s
73 retries: 2
74 test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061"
75 depends_on:
76 - kafka
77 volumes:
78 - ./ssl/:/etc/ves-hv/
79 networks:
80 - ves-hv-default
81
Filip Krzywka93185782018-08-06 09:31:40 +020082 dcae-app-simulator:
Jakub Dudycz84e5c252018-09-03 14:15:55 +020083 image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest
Filip Krzywka93185782018-08-06 09:31:40 +020084 ports:
85 - "6063:6063/tcp"
86 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"]
87 healthcheck:
88 interval: 10s
89 timeout: 5s
90 retries: 2
Jakub Dudycz84e5c252018-09-03 14:15:55 +020091 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
Filip Krzywka93185782018-08-06 09:31:40 +020092 depends_on:
93 - kafka
94 networks:
95 ves-hv-default:
96 aliases:
97 - dcae-app-simulator