summaryrefslogtreecommitdiffstats
path: root/cvp/docker/docker-compose.yml.new
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2017-09-28 03:47:54 -0400
committergrakiss <grakiss.wanglei@huawei.com>2017-09-28 05:15:01 -0400
commit0cf6b232ac9cf128ee9183a27c08f4f74ab2e2e6 (patch)
tree7be233b8f8f65fa968c7b93f1d1e75b691952ed9 /cvp/docker/docker-compose.yml.new
parent63c2e2aa4b8d86349a767f611123ceafc19fa6d6 (diff)
add api&web services for cvp
JIRA: DOVETAIL-512 add api&web services for cvp Change-Id: I9ef9525e980fe61dc3108035ef9a3ff8783b2697 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/docker/docker-compose.yml.new')
-rw-r--r--cvp/docker/docker-compose.yml.new60
1 files changed, 60 insertions, 0 deletions
diff --git a/cvp/docker/docker-compose.yml.new b/cvp/docker/docker-compose.yml.new
new file mode 100644
index 00000000..a1312fd0
--- /dev/null
+++ b/cvp/docker/docker-compose.yml.new
@@ -0,0 +1,60 @@
+---
+version: '3'
+services:
+ testapi:
+ image: opnfv/testapi:cvp.0.5.0
+ container_name: cvp-testapi
+ environment:
+ - mongodb_url=mongodb://mongodb:27017/
+ - base_url=https://cvp.opnfv.org
+ volumes:
+ - cvp-testapi-logs:/home/testapi/logs
+ links:
+ - mongodb
+ ports:
+ - "8010:8010"
+ mongodb:
+ image: mongo:3.2.1
+ container_name: cvp-db
+ volumes:
+ - cvp-db:/data/db
+ expose:
+ - "27017"
+ web:
+ image: opnfv/dovetail:web.cvp.0.6.1
+ container_name: cvp-web
+ restart: always
+ environment:
+ - testapi_url=testapi:8010
+ - VIRTUAL_HOST=cvp.opnfv.org
+ volumes:
+ - cvp-testapi-logs:/home/testapi/logs
+ links:
+ - mongodb
+ - testapi
+ - cvpapi
+ ports:
+ - "8000:8000"
+ cvpapi:
+ image: opnfv/dovetail:api.cvp.0.6.1
+ container_name: cvp-cvpapi
+ environment:
+ - mongodb_url=mongodb://mongodb:27017/
+ - base_url=https://cvp.opnfv.org
+ volumes:
+ - cvp-testapi-logs:/home/testapi/logs
+ ports:
+ - "8011:8011"
+ nginx:
+ image: jwilder/nginx-proxy
+ container_name: cvp-nginx
+ volumes:
+ - /var/run/docker.sock:/tmp/docker.sock:ro
+ depends_on:
+ - web
+ ports:
+ - "80:80"
+
+volumes:
+ cvp-db:
+ cvp-testapi-logs: