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: |
| 45 | image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main |
| 46 | ports: |
| 47 | - "6061:6061/tcp" |
| 48 | entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"] |
| 49 | command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config"] |
| 50 | depends_on: |
| 51 | - kafka |
| 52 | volumes: |
| 53 | - ./ssl/:/etc/ves-hv/ |
| 54 | networks: |
| 55 | - ves-hv-default |
| 56 | |
| 57 | dcae-app-simulator: |
| 58 | image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator |
| 59 | ports: |
| 60 | - "6063:6063/tcp" |
| 61 | command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"] |
| 62 | healthcheck: |
| 63 | interval: 10s |
| 64 | timeout: 5s |
| 65 | retries: 2 |
| 66 | test: ["CMD", "curl", "--request", "GET", "--fail", "--silent", "--show-error", "localhost:6063/healthcheck"] |
| 67 | depends_on: |
| 68 | - kafka |
| 69 | networks: |
| 70 | ves-hv-default: |
| 71 | aliases: |
| 72 | - dcae-app-simulator |