Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Srikanth Vavilapalli | 3171360 | 2017-03-03 00:50:18 +0000 | [diff] [blame] | 17 | # Docker-compose for CORD Monitoring Service |
| 18 | #TODO: The IP addresses in this file need to be parameterized and set when the monitoring service is instantiated through XOS synchronizer |
| 19 | |
| 20 | rabbit1: |
| 21 | image: "rabbitmq:3-management" |
| 22 | hostname: "rabbit1" |
| 23 | environment: |
| 24 | RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG" |
| 25 | RABBITMQ_DEFAULT_USER: "openstack" |
| 26 | RABBITMQ_DEFAULT_PASS: "password" |
| 27 | RABBITMQ_DEFAULT_VHOST: "/" |
| 28 | ports: |
| 29 | - "15672:15672" |
| 30 | - "5672:5672" |
| 31 | labels: |
| 32 | NAME: "rabbitmq1" |
| 33 | |
| 34 | mongodb1: |
| 35 | image: "mongo:3.4" |
| 36 | ports: |
| 37 | - "27017:27017" |
| 38 | labels: |
| 39 | NAME: "mongodb1" |
| 40 | |
| 41 | kafka1: |
| 42 | image: "spotify/kafka" |
| 43 | hostname: "kafka1" |
| 44 | ports: |
| 45 | - "2181:2181" |
| 46 | - "9092:9092" |
| 47 | environment: |
| 48 | ADVERTISED_HOST: "10.0.5.5" |
| 49 | ADVERTISED_PORT: "9092" |
| 50 | labels: |
| 51 | NAME: "kafka1" |
| 52 | |
| 53 | ceilo-notification1: |
| 54 | image: "srikanthvavila/ceilometer-agent-notification" |
| 55 | labels: |
| 56 | NAME: "ceilometer-agent-notification" |
| 57 | links: |
| 58 | - rabbit1 |
| 59 | - mongodb1:mongodb |
| 60 | environment: |
| 61 | RABBIT_TRANSPORT_URL: rabbit://openstack:password@rabbit1:5672// |
| 62 | KAFKA_PUBLISHER_URL: kafka://10.0.5.5:9092/topic=ceilometer |
| 63 | USE_MONGODB: 1 |
| 64 | |
| 65 | cord-publish-subscribe: |
| 66 | image: "srikanthvavila/cord-publish-subscribe" |
| 67 | ports: |
| 68 | - "4455:4455" |
| 69 | labels: |
| 70 | NAME: "cord-publish-subscribe" |
| 71 | environment: |
| 72 | KAFKA_URL: kafka://10.0.5.5:9092/topic=ceilometer |