Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [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: |
| 12 | - "2181:2181" |
| 13 | networks: |
| 14 | - ves-hv-default |
| 15 | |
| 16 | kafka: |
| 17 | image: wurstmeister/kafka |
| 18 | ports: |
| 19 | - "9092:9092" |
| 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: |
| 26 | - /var/run/docker.sock:/var/run/docker.sock |
| 27 | depends_on: |
| 28 | - zookeeper |
| 29 | networks: |
| 30 | - ves-hv-default |
| 31 | |
| 32 | consul: |
| 33 | image: progrium/consul |
| 34 | ports: |
| 35 | - "8500:8500" |
| 36 | environment: |
| 37 | - CONSUL_BIND_INTERFACE=eth0 |
| 38 | networks: |
| 39 | ves-hv-default: |
| 40 | aliases: |
| 41 | - consul |
| 42 | command: ["-server", "-bootstrap"] |
| 43 | |
| 44 | ves-hv-collector: |
Jakub Dudycz | 84e5c25 | 2018-09-03 14:15:55 +0200 | [diff] [blame] | 45 | image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 46 | ports: |
Jakub Dudycz | 84e5c25 | 2018-09-03 14:15:55 +0200 | [diff] [blame] | 47 | - "6060:6060" |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 48 | - "6061:6061/tcp" |
| 49 | entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"] |
| 50 | command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config"] |
Jakub Dudycz | 84e5c25 | 2018-09-03 14:15:55 +0200 | [diff] [blame] | 51 | healthcheck: |
| 52 | interval: 10s |
| 53 | timeout: 5s |
| 54 | retries: 2 |
| 55 | test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061" |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 56 | depends_on: |
| 57 | - kafka |
| 58 | volumes: |
| 59 | - ./ssl/:/etc/ves-hv/ |
| 60 | networks: |
| 61 | - ves-hv-default |
| 62 | |
Filip Krzywka | 86ef395 | 2018-09-11 12:09:06 +0200 | [diff] [blame] | 63 | unencrypted-ves-hv-collector: |
| 64 | image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest |
| 65 | ports: |
| 66 | - "7060:6060" |
| 67 | - "7061:6061/tcp" |
| 68 | entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"] |
| 69 | command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config", "--ssl-disable"] |
| 70 | healthcheck: |
| 71 | interval: 10s |
| 72 | timeout: 5s |
| 73 | retries: 2 |
| 74 | test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061" |
| 75 | depends_on: |
| 76 | - kafka |
| 77 | volumes: |
| 78 | - ./ssl/:/etc/ves-hv/ |
| 79 | networks: |
| 80 | - ves-hv-default |
| 81 | |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 82 | dcae-app-simulator: |
Jakub Dudycz | 84e5c25 | 2018-09-03 14:15:55 +0200 | [diff] [blame] | 83 | image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 84 | ports: |
| 85 | - "6063:6063/tcp" |
| 86 | command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"] |
| 87 | healthcheck: |
| 88 | interval: 10s |
| 89 | timeout: 5s |
| 90 | retries: 2 |
Jakub Dudycz | 84e5c25 | 2018-09-03 14:15:55 +0200 | [diff] [blame] | 91 | test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck" |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 92 | depends_on: |
| 93 | - kafka |
| 94 | networks: |
| 95 | ves-hv-default: |
| 96 | aliases: |
| 97 | - dcae-app-simulator |