Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | version: "3" |
| 2 | |
| 3 | networks: |
| 4 | ves-hv-default: |
| 5 | external: |
| 6 | name: $CONTAINERS_NETWORK |
| 7 | |
| 8 | services: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 9 | |
| 10 | # |
| 11 | # DMaaP Message Router |
| 12 | # |
| 13 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 14 | zookeeper: |
| 15 | image: wurstmeister/zookeeper |
| 16 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 17 | - "2181:2181" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 18 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 19 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 20 | |
| 21 | kafka: |
| 22 | image: wurstmeister/kafka |
| 23 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 24 | - "9092:9092" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 25 | 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 Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 31 | - /var/run/docker.sock:/var/run/docker.sock |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 32 | depends_on: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 33 | - zookeeper |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 34 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 35 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 36 | |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 37 | |
| 38 | # |
| 39 | # Consul / CBS |
| 40 | # |
| 41 | |
| 42 | consul-server: |
| 43 | image: docker.io/consul:1.0.6 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 44 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 45 | - "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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 49 | networks: |
| 50 | ves-hv-default: |
| 51 | aliases: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 52 | - 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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 69 | |
| 70 | ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 71 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 72 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 73 | - "6060:6060" |
| 74 | - "6061:6061/tcp" |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 75 | command: ["--listen-port", "6061", |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 76 | "--kafka-bootstrap-servers", "kafka:9092", |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 77 | "--key-store-password", "onaponap", |
| 78 | "--trust-store-password", "onaponap"] |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 79 | environment: |
| 80 | JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid" |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 81 | CONSUL_HOST: "consul-server" |
| 82 | CONFIG_BINDING_SERVICE: "cbs" |
| 83 | HOSTNAME: "dcae-hv-ves-collector" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 84 | healthcheck: |
| 85 | interval: 10s |
| 86 | timeout: 5s |
| 87 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 88 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 89 | volumes: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 90 | - ./ssl/:/etc/ves-hv/ |
| 91 | depends_on: |
| 92 | - config-binding-service |
| 93 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 94 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 95 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 96 | |
| 97 | unencrypted-ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 98 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${HV_VES_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 99 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 100 | - "7060:6060" |
| 101 | - "7061:6061/tcp" |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 102 | command: ["--listen-port", "6061", |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 103 | "--kafka-bootstrap-servers", "kafka:9092", |
| 104 | "--ssl-disable"] |
| 105 | environment: |
| 106 | JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid" |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 107 | CONSUL_HOST: "consul-server" |
| 108 | CONFIG_BINDING_SERVICE: "cbs" |
| 109 | HOSTNAME: "dcae-hv-ves-collector" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 110 | healthcheck: |
| 111 | interval: 10s |
| 112 | timeout: 5s |
| 113 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 114 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 115 | volumes: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 116 | - ./ssl/:/etc/ves-hv/ |
| 117 | depends_on: |
| 118 | - config-binding-service |
| 119 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 120 | networks: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 121 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 122 | |
| 123 | dcae-app-simulator: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame] | 124 | image: ${DOCKER_REGISTRY}/${HV_VES_COLLECTOR_NAMESPACE}/${HV_VES_GROUP_ID}.${DCAE_APP_SIMULATOR_IMAGE}:${HV_VES_VERSION} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 125 | ports: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 126 | - "6063:6063/tcp" |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 127 | command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "non-existing-topic"] |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 128 | 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 Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 134 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 135 | networks: |
| 136 | ves-hv-default: |
| 137 | aliases: |
Filip Krzywka | 60f9295 | 2019-03-11 14:13:42 +0100 | [diff] [blame] | 138 | - dcae-app-simulator |
Piotr Jaszczyk | 7f2c666 | 2018-12-20 11:51:44 +0100 | [diff] [blame] | 139 | |