blob: 092af0c0c9081b3312781e91ae677a0451bc7d73 [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:
9 zookeeper:
10 image: wurstmeister/zookeeper
11 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020012 - "2181:2181"
Gary Wu9abb61c2018-09-27 10:38:50 -070013 networks:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020014 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070015
16 kafka:
17 image: wurstmeister/kafka
18 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020019 - "9092:9092"
Gary Wu9abb61c2018-09-27 10:38:50 -070020 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:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020026 - /var/run/docker.sock:/var/run/docker.sock
Gary Wu9abb61c2018-09-27 10:38:50 -070027 depends_on:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020028 - zookeeper
Gary Wu9abb61c2018-09-27 10:38:50 -070029 networks:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020030 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070031
32 consul:
33 image: progrium/consul
34 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020035 - "8500:8500"
Gary Wu9abb61c2018-09-27 10:38:50 -070036 environment:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020037 - CONSUL_BIND_INTERFACE=eth0
Gary Wu9abb61c2018-09-27 10:38:50 -070038 networks:
39 ves-hv-default:
40 aliases:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020041 - consul
Gary Wu9abb61c2018-09-27 10:38:50 -070042 command: ["-server", "-bootstrap"]
43
44 ves-hv-collector:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020045 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}
Gary Wu9abb61c2018-09-27 10:38:50 -070046 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020047 - "6060:6060"
48 - "6061:6061/tcp"
49 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "${HV_VES_MAIN_CLASS}"]
50 command: ["--listen-port", "6061","--config-url", "${HV_VES_CONFIG_URL}",
Gary Wu9abb61c2018-09-27 10:38:50 -070051 "--key-store-password", "onaponap",
52 "--trust-store-password", "onaponap"]
53 healthcheck:
54 interval: 10s
55 timeout: 5s
56 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020057 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -070058 depends_on:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020059 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -070060 volumes:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020061 - ./ssl/:/etc/ves-hv/
Gary Wu9abb61c2018-09-27 10:38:50 -070062 networks:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020063 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070064
65 unencrypted-ves-hv-collector:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020066 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}
Gary Wu9abb61c2018-09-27 10:38:50 -070067 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020068 - "7060:6060"
69 - "7061:6061/tcp"
70 entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "${HV_VES_MAIN_CLASS}"]
71 command: ["--listen-port", "6061","--config-url", "${HV_VES_CONFIG_URL}", "--ssl-disable"]
Gary Wu9abb61c2018-09-27 10:38:50 -070072 healthcheck:
73 interval: 10s
74 timeout: 5s
75 retries: 2
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020076 test: ${HV_VES_HEALTHCHECK_CMD}
Gary Wu9abb61c2018-09-27 10:38:50 -070077 depends_on:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020078 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -070079 volumes:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020080 - ./ssl/:/etc/ves-hv/
Gary Wu9abb61c2018-09-27 10:38:50 -070081 networks:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020082 - ves-hv-default
Gary Wu9abb61c2018-09-27 10:38:50 -070083
84 dcae-app-simulator:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020085 image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${DCAE_APP_SIMULATOR_IMAGE}
Gary Wu9abb61c2018-09-27 10:38:50 -070086 ports:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020087 - "6063:6063/tcp"
88 command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"]
Gary Wu9abb61c2018-09-27 10:38:50 -070089 healthcheck:
90 interval: 10s
91 timeout: 5s
92 retries: 2
93 test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck"
94 depends_on:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020095 - kafka
Gary Wu9abb61c2018-09-27 10:38:50 -070096 networks:
97 ves-hv-default:
98 aliases:
Filip Krzywkac3bf03a2018-10-01 07:48:40 +020099 - dcae-app-simulator