diff options
author | hongbo tian <hongbo.tianhongbo@huawei.com> | 2017-09-28 09:28:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-28 09:28:41 +0000 |
commit | 61820ee85c967d90021e4089c6a7907046685639 (patch) | |
tree | 0c3f23e2146f0855fb5be0ff55343d59e3a9c9ab /cvp/docker/docker-compose.yml | |
parent | 0cc2fdefa9e6e959e7c69beede736738f339f636 (diff) | |
parent | 0cf6b232ac9cf128ee9183a27c08f4f74ab2e2e6 (diff) |
Merge "add api&web services for cvp"
Diffstat (limited to 'cvp/docker/docker-compose.yml')
-rw-r--r-- | cvp/docker/docker-compose.yml | 60 |
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: |