blob: ac07eb785363431c72137cfac7acdfff315f9361 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001version: "3"
2
3networks:
4 ves-hv-default:
5 external:
6 name: $CONTAINERS_NETWORK
7
8services:
Filip Krzywka60f92952019-03-11 14:13:42 +01009
10 #
11 # DMaaP Message Router
12 #
13
Gary Wu9abb61c2018-09-27 10:38:50 -070014 zookeeper:
15 image: wurstmeister/zookeeper
16 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010017 - "2181:2181"
Gary Wu9abb61c2018-09-27 10:38:50 -070018 networks:
Filip Krzywka60f92952019-03-11 14:13:42 +010019 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070020
21 kafka:
22 image: wurstmeister/kafka
23 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010024 - "9092:9092"
Gary Wu9abb61c2018-09-27 10:38:50 -070025 environment:
26 KAFKA_ADVERTISED_HOST_NAME: "kafka"
27 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
28 KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
29 KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
30 volumes:
Filip Krzywka60f92952019-03-11 14:13:42 +010031 - /var/run/docker.sock:/var/run/docker.sock
Gary Wu9abb61c2018-09-27 10:38:50 -070032 depends_on:
Filip Krzywka60f92952019-03-11 14:13:42 +010033 - zookeeper
Gary Wu9abb61c2018-09-27 10:38:50 -070034 networks:
Filip Krzywka60f92952019-03-11 14:13:42 +010035 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070036
Filip Krzywka60f92952019-03-11 14:13:42 +010037
38 #
39 # Consul / CBS
40 #
41
42 consul-server:
43 image: docker.io/consul:1.0.6
Gary Wu9abb61c2018-09-27 10:38:50 -070044 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010045 - "8500:8500"
46 command: ["agent","-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
47 volumes:
48 - ./consul.d/:/consul/consul.d
Gary Wu9abb61c2018-09-27 10:38:50 -070049 networks:
50 ves-hv-default:
51 aliases:
Filip Krzywka60f92952019-03-11 14:13:42 +010052 - consul
53
54 config-binding-service:
55 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
56 ports:
57 - "10000:10000"
58 environment:
59 CONSUL_HOST: "consul-server"
60 depends_on:
61 - consul-server
62 networks:
63 ves-hv-default:
64 aliases:
65 - cbs
66 #
67 # DCAE HV VES Collector
68 #
Gary Wu9abb61c2018-09-27 10:38:50 -070069
70 ves-hv-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +010071 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -070072 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +010073 - "6060:6060"
74 - "6061:6061/tcp"
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +010075 command: ["--listen-port", "6061",
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +010076 "--kafka-bootstrap-servers", "kafka:9092",
Gary Wu9abb61c2018-09-27 10:38:50 -070077 "--key-store-password", "onaponap",
78 "--trust-store-password", "onaponap"]
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +010079 environment:
80 JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid"
Filip Krzywka60f92952019-03-11 14:13:42 +010081 CONSUL_HOST: "consul-server"
82 CONFIG_BINDING_SERVICE: "cbs"
83 HOSTNAME: "dcae-hv-ves-collector"
Gary Wu9abb61c2018-09-27 10:38:50 -070084 healthcheck:
85 interval: 10s
86 timeout: 5s
87 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020088 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -070089 volumes:
Filip Krzywka60f92952019-03-11 14:13:42 +010090 - ./ssl/:/etc/ves-hv/
91 depends_on:
92 - config-binding-service
93 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -070094 networks:
Filip Krzywka60f92952019-03-11 14:13:42 +010095 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070096
97 unencrypted-ves-hv-collector:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +010098 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -070099 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100100 - "7060:6060"
101 - "7061:6061/tcp"
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100102 command: ["--listen-port", "6061",
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100103 "--kafka-bootstrap-servers", "kafka:9092",
104 "--ssl-disable"]
105 environment:
106 JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid"
Filip Krzywka60f92952019-03-11 14:13:42 +0100107 CONSUL_HOST: "consul-server"
108 CONFIG_BINDING_SERVICE: "cbs"
109 HOSTNAME: "dcae-hv-ves-collector"
Gary Wu9abb61c2018-09-27 10:38:50 -0700110 healthcheck:
111 interval: 10s
112 timeout: 5s
113 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200114 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -0700115 volumes:
Filip Krzywka60f92952019-03-11 14:13:42 +0100116 - ./ssl/:/etc/ves-hv/
117 depends_on:
118 - config-binding-service
119 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700120 networks:
Filip Krzywka60f92952019-03-11 14:13:42 +0100121 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -0700122
123 dcae-app-simulator:
Filip Krzywka5d8a8df2018-11-21 08:57:27 +0100124 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${DCAE_APP_SIMULATOR_IMAGE}:${HV_VES_VERSION}
Gary Wu9abb61c2018-09-27 10:38:50 -0700125 ports:
Filip Krzywka60f92952019-03-11 14:13:42 +0100126 - "6063:6063/tcp"
Filip Krzywkac3bf03a2018-10-01 07:48:40 +0200127 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"]
Gary Wu9abb61c2018-09-27 10:38:50 -0700128 healthcheck:
129 interval: 10s
130 timeout: 5s
131 retries: 2
132 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
133 depends_on:
Filip Krzywka60f92952019-03-11 14:13:42 +0100134 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -0700135 networks:
136 ves-hv-default:
137 aliases:
Filip Krzywka60f92952019-03-11 14:13:42 +0100138 - dcae-app-simulator
Piotr Jaszczyk7f2c6662018-12-20 11:51:44 +0100139