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: |
| 9 | zookeeper: |
| 10 | image: wurstmeister/zookeeper |
| 11 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 12 | - "2181:2181" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 13 | networks: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 14 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 15 | |
| 16 | kafka: |
| 17 | image: wurstmeister/kafka |
| 18 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 19 | - "9092:9092" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 20 | 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 Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 26 | - /var/run/docker.sock:/var/run/docker.sock |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 27 | depends_on: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 28 | - zookeeper |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 29 | networks: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 30 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 31 | |
| 32 | consul: |
| 33 | image: progrium/consul |
| 34 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 35 | - "8500:8500" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 36 | environment: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 37 | - CONSUL_BIND_INTERFACE=eth0 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 38 | networks: |
| 39 | ves-hv-default: |
| 40 | aliases: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 41 | - consul |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 42 | command: ["-server", "-bootstrap"] |
| 43 | |
| 44 | ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame^] | 45 | 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] | 46 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 47 | - "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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 51 | "--key-store-password", "onaponap", |
| 52 | "--trust-store-password", "onaponap"] |
| 53 | healthcheck: |
| 54 | interval: 10s |
| 55 | timeout: 5s |
| 56 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 57 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 58 | depends_on: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 59 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 60 | volumes: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 61 | - ./ssl/:/etc/ves-hv/ |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 62 | networks: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 63 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 64 | |
| 65 | unencrypted-ves-hv-collector: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame^] | 66 | 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] | 67 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 68 | - "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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 72 | healthcheck: |
| 73 | interval: 10s |
| 74 | timeout: 5s |
| 75 | retries: 2 |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 76 | test: ${HV_VES_HEALTHCHECK_CMD} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 77 | depends_on: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 78 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 79 | volumes: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 80 | - ./ssl/:/etc/ves-hv/ |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 81 | networks: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 82 | - ves-hv-default |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 83 | |
| 84 | dcae-app-simulator: |
Filip Krzywka | 5d8a8df | 2018-11-21 08:57:27 +0100 | [diff] [blame^] | 85 | 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] | 86 | ports: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 87 | - "6063:6063/tcp" |
| 88 | 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] | 89 | 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 Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 95 | - kafka |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 96 | networks: |
| 97 | ves-hv-default: |
| 98 | aliases: |
Filip Krzywka | c3bf03a | 2018-10-01 07:48:40 +0200 | [diff] [blame] | 99 | - dcae-app-simulator |