summaryrefslogtreecommitdiffstats
path: root/heat/R2MVP/docker-compose-1.yaml
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-04 16:51:35 -0400
committerLusheng Ji <lji@research.att.com>2018-04-04 16:53:15 -0400
commit6fabd804de890bc5069d2518fffb11b83ea5961a (patch)
tree227cce9b546af720b81a1d65a524e499c757572d /heat/R2MVP/docker-compose-1.yaml
parent73adaf1d822be53f446a0e655adbef5405a9693f (diff)
Fix docker-compose files
Alos breaking into two files so we can use shell script to check for dependencies, as well as injecting KVs before service components are up. Issue-ID: DCAEGEN2-206 Change-Id: I8a14675ab96472f2eda86864b5e3248bd48dd00d Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'heat/R2MVP/docker-compose-1.yaml')
-rw-r--r--heat/R2MVP/docker-compose-1.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/heat/R2MVP/docker-compose-1.yaml b/heat/R2MVP/docker-compose-1.yaml
new file mode 100644
index 0000000..6d5ed67
--- /dev/null
+++ b/heat/R2MVP/docker-compose-1.yaml
@@ -0,0 +1,33 @@
+version: '2.1'
+services:
+ db:
+ image: postgres:9.5
+ container_name: "db"
+ hostname: "db"
+ ports:
+ - "5432:5432"
+ environment:
+ - 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: "agent -server -bootstrap-expect 1 -client 0.0.0.0"
+
+ 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"
+ ports:
+ - "10000:10000"
+ depends_on:
+ - consul
+