summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--opt/servers/roles/testapi/files/run_testapi.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/opt/servers/roles/testapi/files/run_testapi.sh b/opt/servers/roles/testapi/files/run_testapi.sh
index ccc37f16..f9ba8387 100644
--- a/opt/servers/roles/testapi/files/run_testapi.sh
+++ b/opt/servers/roles/testapi/files/run_testapi.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-envs="mongodb_url=mongodb://172.17.0.1:27017/ -e api_port=8000 -e swagger_url=http://testapi.qtip.openzero.net"
-docker run --name testapi -id -e $envs -p 8000:8000 opnfv/testapi
+envs="mongodb_url=mongodb://mongo:27017/ -e api_port=8000 -e swagger_url=http://testapi.qtip.openzero.net"
+docker run --name testapi --link mongo:mongo -p 8000:8000 -e $envs -d opnfv/testapi