blob: 2a928217d8059e71e6fe55ed1e7bc7ee9c971b3d [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:
Piotr Jaszczyke4bd8992018-09-21 11:31:59 +020045 image: ${DOCKER_REGISTRY_PREFIX}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"]
Piotr Jaszczyke4bd8992018-09-21 11:31:59 +020050 command: ["--listen-port", "6061",
51 "--config-url", "http://consul:8500/v1/kv/veshv-config",
52 "--key-store-password", "onaponap",
53 "--trust-store-password", "onaponap"]
Jakub Dudycz84e5c252018-09-03 14:15:55 +020054 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"
Filip Krzywka93185782018-08-06 09:31:40 +020059 depends_on:
60 - kafka
61 volumes:
62 - ./ssl/:/etc/ves-hv/
63 networks:
64 - ves-hv-default
65
Filip Krzywka86ef3952018-09-11 12:09:06 +020066 unencrypted-ves-hv-collector:
Piotr Jaszczyke4bd8992018-09-21 11:31:59 +020067 image: ${DOCKER_REGISTRY_PREFIX}onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
Filip Krzywka86ef3952018-09-11 12:09:06 +020068 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
Filip Krzywka93185782018-08-06 09:31:40 +020085 dcae-app-simulator:
Piotr Jaszczyke4bd8992018-09-21 11:31:59 +020086 image: ${DOCKER_REGISTRY_PREFIX}onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest
Filip Krzywka93185782018-08-06 09:31:40 +020087 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
Jakub Dudycz84e5c252018-09-03 14:15:55 +020094 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
Filip Krzywka93185782018-08-06 09:31:40 +020095 depends_on:
96 - kafka
97 networks:
98 ves-hv-default:
99 aliases:
100 - dcae-app-simulator