blob: 66cbde22f3a0aeb670af92cec39cc63f79fd20e0 [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
63 dcae-app-simulator:
Jakub Dudycz84e5c252018-09-03 14:15:55 +020064 image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest
Filip Krzywka93185782018-08-06 09:31:40 +020065 ports:
66 - "6063:6063/tcp"
67 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"]
68 healthcheck:
69 interval: 10s
70 timeout: 5s
71 retries: 2
Jakub Dudycz84e5c252018-09-03 14:15:55 +020072 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
Filip Krzywka93185782018-08-06 09:31:40 +020073 depends_on:
74 - kafka
75 networks:
76 ves-hv-default:
77 aliases:
78 - dcae-app-simulator