summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-04 10:51:11 -0400
committerLusheng Ji <lji@research.att.com>2018-04-04 15:36:11 +0000
commit73adaf1d822be53f446a0e655adbef5405a9693f (patch)
tree705ae5e2b00b394328faad4a649796149abddaa2
parent097fea912262a1e4f2ffb7163cd6209c26e8698d (diff)
Enhance docker-compose
Issue-ID: DCAEGEN2-206 Change-Id: I578f749b6946970b8215aa3a228420f025dc7f34 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rw-r--r--heat/R2MVP/docker-compose.yaml81
1 files changed, 75 insertions, 6 deletions
diff --git a/heat/R2MVP/docker-compose.yaml b/heat/R2MVP/docker-compose.yaml
index e05667d..5413a5d 100644
--- a/heat/R2MVP/docker-compose.yaml
+++ b/heat/R2MVP/docker-compose.yaml
@@ -1,22 +1,91 @@
version: '2'
services:
db:
- image: postgres
+ image: postgres:9.5
+ container_name: "db"
+ hostname: "db"
ports:
- "5432:5432"
environment:
- POSTGRES_USER: "user"
- POSTGRES_PASSWORD: "pass"
+ POSTGRES_USER: "holmes"
+ POSTGRES_PASSWORD: "holmespwd"
+
+ consul:
+ image: consul:0.8.3
+ container_name: "consul"
+ hostname: "consul"
+ ports:
+ - "8400:8400"
+ - "8500:8500"
+ - "8600:8600"
+ command: "-server -bootstrap-expect 1"
+
+ config_binding_service:
+ image: {{ nexus_docker_repo }}/onap/org.onap.dcaegen2.platform.configbinding:v1.2.0
+ container_name: "config_binding_service"
+ hostname: "config_binding_service"
+ environment:
+ - CONSUL_HOST: consul
+ expose:
+ - "10000:10000"
+
ves:
image: {{ nexus_docker_repo }}/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.2.0
+ container_name: "ves"
+ hostname: "ves"
+ environment:
+ - DMAAPHOST={{ mr_ip_addr }}
+ - CONSUL_HOST=consul
+ - CONSUL_PORT=8500
+ - CONFIG_BINDING_SERVICE=config_binding_service
+ - SERVICE_NAME=ves
+ - HOSTNAME=ves
expose:
- - 8080
- tca:
+ - "8080:8080"
+ - "8443:8443"
+
+ tca:
image: {{ nexus_docker_repo }}/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.0.0
container_name: tca
hostname: tca
environment:
- DMAAPHOST={{ mr_ip_addr }}
+ - CONSUL_HOST=consul
+ - CONSUL_PORT=8500
+ - CBS_HOST=cbs
+ - CBS_PORT=10000
+ - SERVICE_NAME=tca
+ - CONFIG_BINDING_SERVICE=config_binding_service
+ expose:
+ - "11011:11011"
+ - "11015:11015"
+
+ holmes-engine:
+ image: {{ nexus_docker_repo }}/onap/holmes/engine-management:latest
+ conatiner_name: he
+ host_name: he
+ environment:
+ - URL_JDBC=db:5432
+ - JDBC_USERNAME=holmes
+ - JDBC_PASSWORD=holmespwd
+ - MSB_ADDR={{ msb_ip_addr }}
+ - CONSUL_HOST=consul
+ - CONSUL_PORT=8500
+ - HOSTNAME=he
expose:
- - 11011
+ - "9102:9102"
+ holmes-rule:
+ image: {{ nexus_docker_repo }}/onap/holmes/rule-management:latest
+ conatiner_name: hr
+ host_name: hr
+ environment:
+ - URL_JDBC=db:5432
+ - JDBC_USERNAME=holmes
+ - JDBC_PASSWORD=holmespwd
+ - MSB_ADDR={{ msb_ip_addr }}
+ - CONSUL_HOST=consul
+ - CONSUL_PORT=8500
+ - HOSTNAME=hr
+ expose:
+ - "9101:9101"