blob: f9f52b4ebb83da7aede078bcfb8d0874ecc12a61 [file] [log] [blame]
Piotr Jaszczyk5e93c1e2018-08-14 12:52:28 +02001version: "3.4"
fkrzywkacbf9e252018-06-05 12:17:31 +02002services:
3 zookeeper:
4 image: wurstmeister/zookeeper
5 ports:
6 - "2181:2181"
Piotr Jaszczyk67689402018-06-14 09:48:46 +02007
fkrzywkacbf9e252018-06-05 12:17:31 +02008 kafka:
9 image: wurstmeister/kafka
10 ports:
11 - "9092:9092"
12 environment:
Piotr Jaszczyk7c3b5952018-06-08 16:29:31 +020013 KAFKA_ADVERTISED_HOST_NAME: "kafka"
fkrzywkacbf9e252018-06-05 12:17:31 +020014 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
Piotr Jaszczyk7c3b5952018-06-08 16:29:31 +020015 KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
16 KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
fkrzywkacbf9e252018-06-05 12:17:31 +020017 volumes:
18 - /var/run/docker.sock:/var/run/docker.sock
19 depends_on:
20 - zookeeper
Piotr Jaszczyk67689402018-06-14 09:48:46 +020021
Jakub Dudycz553154a2018-06-15 16:09:41 +020022 consul:
23 image: progrium/consul
24 ports:
25 - "8500:8500"
26 environment:
27 - CONSUL_BIND_INTERFACE=eth0
28 command: ["-server", "-bootstrap", "-ui-dir", "/ui"]
29
Piotr Jaszczyk67689402018-06-14 09:48:46 +020030 ves-hv-collector:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +020031 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
Piotr Jaszczyk67689402018-06-14 09:48:46 +020032# build:
33# context: hv-collector-main
34# dockerfile: Dockerfile
fkrzywkacbf9e252018-06-05 12:17:31 +020035 ports:
Jakub Dudyczdd827e22018-08-07 14:18:37 +020036 - "6060:6060"
Jakub Dudycz85439492018-06-08 12:57:13 +020037 - "6061:6061/tcp"
Piotr Jaszczyk5e93c1e2018-08-14 12:52:28 +020038 command: ["--listen-port", "6061",
39 "--health-check-api-port", "6060",
40 "--config-url", "http://consul:8500/v1/kv/veshv-config"]
41 healthcheck:
42 test: curl -f http://localhost:6060/health/ready || exit 1
43 interval: 10s
44 timeout: 3s
45 retries: 3
46 start_period: 20s
fkrzywkacbf9e252018-06-05 12:17:31 +020047 depends_on:
48 - kafka
Jakub Dudycz553154a2018-06-15 16:09:41 +020049 - consul
Jakub Dudycz85439492018-06-08 12:57:13 +020050 volumes:
Piotr Jaszczyk07bbbf72018-06-07 11:52:16 +020051 - ./ssl/:/etc/ves-hv/
Piotr Jaszczyk67689402018-06-14 09:48:46 +020052
53 xnf-simulator:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +020054 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-xnf-simulator
Piotr Jaszczyk67689402018-06-14 09:48:46 +020055# build:
Jakub Dudycz13837752018-07-09 08:06:01 +020056# context: hv-collector-xnf-simulator
Piotr Jaszczyk67689402018-06-14 09:48:46 +020057# dockerfile: Dockerfile
58 ports:
Jakub Dudyczfc6ab3e2018-07-24 11:48:12 +020059 - "6062:6062/tcp"
60 command: ["--listen-port", "6062", "--ves-host", "ves-hv-collector", "--ves-port", "6061"]
Jakub Dudycz85439492018-06-08 12:57:13 +020061 depends_on:
Piotr Jaszczyk67689402018-06-14 09:48:46 +020062 - ves-hv-collector
Jakub Dudycz85439492018-06-08 12:57:13 +020063 volumes:
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +020064 - ./ssl/:/etc/ves-hv/
Piotr Jaszczyk67689402018-06-14 09:48:46 +020065
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +020066 dcae-app-simulator:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +020067 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator
Piotr Jaszczyk67689402018-06-14 09:48:46 +020068# build:
69# context: hv-collector-dcae-app-simulator
70# dockerfile: Dockerfile
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +020071 ports:
Jakub Dudyczfc6ab3e2018-07-24 11:48:12 +020072 - "6063:6063/tcp"
73 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"]
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +020074 depends_on:
75 - kafka