diff --git a/docker-compose.yml b/docker-compose.yml index 36259f8..fcc0821 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: volumes: - ./uploads:/app/wp-content/uploads ports: - - 8080:8080 + - 127.0.0.1:12001:8080 environment: - MYSQL_HOST=db - MYSQL_DATABASE diff --git a/test b/test index 733c3fe..df78727 100755 --- a/test +++ b/test @@ -18,7 +18,7 @@ docker-compose up -d # Wait for the web server to respond cont=0 echo -n "Espera al servidor web " -while ! curl -s localhost:8080 > /dev/null; do +while ! curl -s localhost:12001 > /dev/null; do echo -n "." cont=$((cont+1)) if [ "$cont" == 30 ]; then @@ -30,7 +30,7 @@ while ! curl -s localhost:8080 > /dev/null; do done echo " connectado" -STR=`curl -s localhost:8080 |grep "Hello world!"` +STR=`curl -s localhost:12001 |grep "Hello world!"` tear_down if [[ "$STR" == "" ]]