--- 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: