summaryrefslogtreecommitdiffstats
path: root/cvp/docker/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'cvp/docker/docker-compose.yml')
-rw-r--r--cvp/docker/docker-compose.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/cvp/docker/docker-compose.yml b/cvp/docker/docker-compose.yml
new file mode 100644
index 00000000..1825f02d
--- /dev/null
+++ b/cvp/docker/docker-compose.yml
@@ -0,0 +1,60 @@
+---
+version: '2'
+services:
+ testapi:
+ image: opnfv/testapi:latest
+ container_name: cvp-testapi
+ environment:
+ - mongodb_url=mongodb://mongodb:27017/
+ - base_url=http://116.66.187.136:9999
+ 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.latest
+ 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.latest
+ container_name: cvp-cvpapi
+ environment:
+ - mongodb_url=mongodb://mongodb:27017/
+ - base_url=http://116.66.187.136:9999
+ 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: