blob: adf8947d9aa5c1b2deff0faf642de224b7dc96b4 [file] [log] [blame]
Filip Krzywka73339512018-09-20 12:17:46 +02001version: "3.5"
fkrzywkacbf9e252018-06-05 12:17:31 +02002services:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +01003
4 #
5 # DMaaP Message Router
6 #
7
8 message-router-zookeeper:
fkrzywkacbf9e252018-06-05 12:17:31 +02009 image: wurstmeister/zookeeper
10 ports:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010011 - "2181:2181"
Piotr Jaszczyk67689402018-06-14 09:48:46 +020012
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010013 message-router-kafka:
14# image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.1
fkrzywkacbf9e252018-06-05 12:17:31 +020015 image: wurstmeister/kafka
16 ports:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010017 - "9092:9092"
fkrzywkacbf9e252018-06-05 12:17:31 +020018 environment:
fkrzywkacbf9e252018-06-05 12:17:31 +020019 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010020 KAFKA_ZOOKEEPER_CONNECT: "message-router-zookeeper:2181"
21 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT"
22 KAFKA_ADVERTISED_LISTENERS: "INTERNAL_PLAINTEXT://message-router-kafka:9092"
23 KAFKA_LISTENERS: "INTERNAL_PLAINTEXT://0.0.0.0:9092"
24 KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL_PLAINTEXT"
fkrzywkacbf9e252018-06-05 12:17:31 +020025 volumes:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010026 - /var/run/docker.sock:/var/run/docker.sock
fkrzywkacbf9e252018-06-05 12:17:31 +020027 depends_on:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010028 - message-router-zookeeper
Piotr Jaszczyk67689402018-06-14 09:48:46 +020029
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010030
31 #
32 # Consul / CBS
33 #
34
35 consul-server:
36 image: docker.io/consul:1.0.6
37 ports:
38 - "8500:8500"
39 command: ["agent","-bootstrap", "-client=0.0.0.0", "-server", "-ui"]
40
41 consul-config:
42 image: consul
43 depends_on:
44 - consul-server
45 restart: on-failure
46 command: ["kv", "put", "-http-addr=http://consul-server:8500", "veshv-config", '{
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010047 "collector.routing": [
48 {
49 "fromDomain": "perf3gpp",
50 "toTopic": "HV_VES_PERF3GPP"
51 }
52 ]
53 }']
54
55
56 #
57 # DCAE HV VES Collector
58 #
Jakub Dudycz553154a2018-06-15 16:09:41 +020059
Piotr Jaszczyk67689402018-06-14 09:48:46 +020060 ves-hv-collector:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +020061 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest
fkrzywkacbf9e252018-06-05 12:17:31 +020062 ports:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010063 - "6060:6060"
64 - "6061:6061/tcp"
Piotr Jaszczyk5e93c1e2018-08-14 12:52:28 +020065 command: ["--listen-port", "6061",
66 "--health-check-api-port", "6060",
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010067 "--config-url", "http://consul-server:8500/v1/kv/veshv-config?raw=true",
Piotr Jaszczyk4128aa22018-12-18 15:58:56 +010068 "--kafka-bootstrap-servers", "message-router-kafka:9092",
Piotr Jaszczyk069dcc12018-09-20 12:04:03 +020069 "--key-store-password", "onaponap",
70 "--trust-store-password", "onaponap"]
Piotr Jaszczyk4128aa22018-12-18 15:58:56 +010071 environment:
72 JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid"
Piotr Jaszczyk5e93c1e2018-08-14 12:52:28 +020073 healthcheck:
74 test: curl -f http://localhost:6060/health/ready || exit 1
75 interval: 10s
76 timeout: 3s
77 retries: 3
78 start_period: 20s
fkrzywkacbf9e252018-06-05 12:17:31 +020079 depends_on:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010080 - message-router-kafka
Piotr Jaszczyk729d4f12018-12-12 07:48:42 +010081 - consul-config
Jakub Dudycz85439492018-06-08 12:57:13 +020082 volumes:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010083 - ./ssl/:/etc/ves-hv/
84
85
86 #
87 # Simulators
88 #
Piotr Jaszczyk67689402018-06-14 09:48:46 +020089
90 xnf-simulator:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +020091 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-xnf-simulator
Piotr Jaszczyk67689402018-06-14 09:48:46 +020092 ports:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +010093 - "6062:6062/tcp"
Piotr Jaszczyk069dcc12018-09-20 12:04:03 +020094 command: ["--listen-port", "6062",
95 "--ves-host", "ves-hv-collector",
96 "--ves-port", "6061",
Piotr Jaszczyk6ca06272018-12-13 09:26:36 +010097 "--key-store", "/etc/ves-hv/client.p12",
Piotr Jaszczyk069dcc12018-09-20 12:04:03 +020098 "--key-store-password", "onaponap",
99 "--trust-store-password", "onaponap"]
Jakub Dudycz85439492018-06-08 12:57:13 +0200100 depends_on:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +0100101 - ves-hv-collector
Jakub Dudycz85439492018-06-08 12:57:13 +0200102 volumes:
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +0200103 - ./ssl/:/etc/ves-hv/
Piotr Jaszczyk67689402018-06-14 09:48:46 +0200104
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +0200105 dcae-app-simulator:
Piotr Jaszczykd6f5bfa2018-08-29 13:24:59 +0200106 image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +0200107 ports:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +0100108 - "6063:6063/tcp"
Piotr Jaszczyk069dcc12018-09-20 12:04:03 +0200109 command: ["--listen-port", "6063",
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +0100110 "--kafka-bootstrap-servers", "message-router-kafka:9092",
Piotr Jaszczykfd44b432018-10-01 07:54:26 +0200111 "--kafka-topics", "HV_VES_PERF3GPP"]
Piotr Jaszczyk94eeb732018-06-12 14:19:10 +0200112 depends_on:
Piotr Jaszczyk8b8c37c2018-12-07 14:41:39 +0100113 - message-router-kafka
Piotr Jaszczykd55f5c02018-12-14 12:05:47 +0100114
115 #
116 # Monitoring
117 #
118 prometheus:
119 image: prom/prometheus
120 ports:
121 - "9090:9090"
122 volumes:
123 - ./prometheus.yml:/etc/prometheus/prometheus.yml