Filip Krzywka | 7333951 | 2018-09-20 12:17:46 +0200 | [diff] [blame] | 1 | version: "3.5" |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 2 | services: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 3 | |
| 4 | # |
| 5 | # DMaaP Message Router |
| 6 | # |
| 7 | |
| 8 | message-router-zookeeper: |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 9 | image: wurstmeister/zookeeper |
| 10 | ports: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 11 | - "2181:2181" |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 12 | |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 13 | message-router-kafka: |
| 14 | # image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.1 |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 15 | image: wurstmeister/kafka |
| 16 | ports: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 17 | - "9092:9092" |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 18 | environment: |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 19 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 20 | KAFKA_ZOOKEEPER_CONNECT: "message-router-zookeeper:2181" |
| 21 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT" |
| 22 | KAFKA_ADVERTISED_LISTENERS: "INTERNAL_PLAINTEXT://message-router-kafka:9092" |
| 23 | KAFKA_LISTENERS: "INTERNAL_PLAINTEXT://0.0.0.0:9092" |
| 24 | KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL_PLAINTEXT" |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 25 | volumes: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 26 | - /var/run/docker.sock:/var/run/docker.sock |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 27 | depends_on: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 28 | - message-router-zookeeper |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 29 | |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 30 | |
| 31 | # |
| 32 | # Consul / CBS |
| 33 | # |
| 34 | |
| 35 | consul-server: |
| 36 | image: docker.io/consul:1.0.6 |
| 37 | ports: |
| 38 | - "8500:8500" |
| 39 | command: ["agent","-bootstrap", "-client=0.0.0.0", "-server", "-ui"] |
| 40 | |
| 41 | consul-config: |
| 42 | image: consul |
| 43 | depends_on: |
| 44 | - consul-server |
| 45 | restart: on-failure |
| 46 | command: ["kv", "put", "-http-addr=http://consul-server:8500", "veshv-config", '{ |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 47 | "collector.routing": [ |
| 48 | { |
| 49 | "fromDomain": "perf3gpp", |
| 50 | "toTopic": "HV_VES_PERF3GPP" |
| 51 | } |
| 52 | ] |
| 53 | }'] |
| 54 | |
| 55 | |
| 56 | # |
| 57 | # DCAE HV VES Collector |
| 58 | # |
Jakub Dudycz | 553154a | 2018-06-15 16:09:41 +0200 | [diff] [blame] | 59 | |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 60 | ves-hv-collector: |
Piotr Jaszczyk | d6f5bfa | 2018-08-29 13:24:59 +0200 | [diff] [blame] | 61 | image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 62 | ports: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 63 | - "6060:6060" |
| 64 | - "6061:6061/tcp" |
Piotr Jaszczyk | 5e93c1e | 2018-08-14 12:52:28 +0200 | [diff] [blame] | 65 | command: ["--listen-port", "6061", |
| 66 | "--health-check-api-port", "6060", |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 67 | "--config-url", "http://consul-server:8500/v1/kv/veshv-config?raw=true", |
Piotr Jaszczyk | 4128aa2 | 2018-12-18 15:58:56 +0100 | [diff] [blame^] | 68 | "--kafka-bootstrap-servers", "message-router-kafka:9092", |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 69 | "--key-store-password", "onaponap", |
| 70 | "--trust-store-password", "onaponap"] |
Piotr Jaszczyk | 4128aa2 | 2018-12-18 15:58:56 +0100 | [diff] [blame^] | 71 | environment: |
| 72 | JAVA_OPTS: "-Dio.netty.leakDetection.level=paranoid" |
Piotr Jaszczyk | 5e93c1e | 2018-08-14 12:52:28 +0200 | [diff] [blame] | 73 | healthcheck: |
| 74 | test: curl -f http://localhost:6060/health/ready || exit 1 |
| 75 | interval: 10s |
| 76 | timeout: 3s |
| 77 | retries: 3 |
| 78 | start_period: 20s |
fkrzywka | cbf9e25 | 2018-06-05 12:17:31 +0200 | [diff] [blame] | 79 | depends_on: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 80 | - message-router-kafka |
Piotr Jaszczyk | 729d4f1 | 2018-12-12 07:48:42 +0100 | [diff] [blame] | 81 | - consul-config |
Jakub Dudycz | 8543949 | 2018-06-08 12:57:13 +0200 | [diff] [blame] | 82 | volumes: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 83 | - ./ssl/:/etc/ves-hv/ |
| 84 | |
| 85 | |
| 86 | # |
| 87 | # Simulators |
| 88 | # |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 89 | |
| 90 | xnf-simulator: |
Piotr Jaszczyk | d6f5bfa | 2018-08-29 13:24:59 +0200 | [diff] [blame] | 91 | image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-xnf-simulator |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 92 | ports: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 93 | - "6062:6062/tcp" |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 94 | command: ["--listen-port", "6062", |
| 95 | "--ves-host", "ves-hv-collector", |
| 96 | "--ves-port", "6061", |
Piotr Jaszczyk | 6ca0627 | 2018-12-13 09:26:36 +0100 | [diff] [blame] | 97 | "--key-store", "/etc/ves-hv/client.p12", |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 98 | "--key-store-password", "onaponap", |
| 99 | "--trust-store-password", "onaponap"] |
Jakub Dudycz | 8543949 | 2018-06-08 12:57:13 +0200 | [diff] [blame] | 100 | depends_on: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 101 | - ves-hv-collector |
Jakub Dudycz | 8543949 | 2018-06-08 12:57:13 +0200 | [diff] [blame] | 102 | volumes: |
Piotr Jaszczyk | 94eeb73 | 2018-06-12 14:19:10 +0200 | [diff] [blame] | 103 | - ./ssl/:/etc/ves-hv/ |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 104 | |
Piotr Jaszczyk | 94eeb73 | 2018-06-12 14:19:10 +0200 | [diff] [blame] | 105 | dcae-app-simulator: |
Piotr Jaszczyk | d6f5bfa | 2018-08-29 13:24:59 +0200 | [diff] [blame] | 106 | image: onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator |
Piotr Jaszczyk | 94eeb73 | 2018-06-12 14:19:10 +0200 | [diff] [blame] | 107 | ports: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 108 | - "6063:6063/tcp" |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 109 | command: ["--listen-port", "6063", |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 110 | "--kafka-bootstrap-servers", "message-router-kafka:9092", |
Piotr Jaszczyk | fd44b43 | 2018-10-01 07:54:26 +0200 | [diff] [blame] | 111 | "--kafka-topics", "HV_VES_PERF3GPP"] |
Piotr Jaszczyk | 94eeb73 | 2018-06-12 14:19:10 +0200 | [diff] [blame] | 112 | depends_on: |
Piotr Jaszczyk | 8b8c37c | 2018-12-07 14:41:39 +0100 | [diff] [blame] | 113 | - message-router-kafka |
Piotr Jaszczyk | d55f5c0 | 2018-12-14 12:05:47 +0100 | [diff] [blame] | 114 | |
| 115 | # |
| 116 | # Monitoring |
| 117 | # |
| 118 | prometheus: |
| 119 | image: prom/prometheus |
| 120 | ports: |
| 121 | - "9090:9090" |
| 122 | volumes: |
| 123 | - ./prometheus.yml:/etc/prometheus/prometheus.yml |