Use port 12001 for test

This commit is contained in:
meskio 2022-12-19 20:20:22 +01:00
parent 9df74c95fa
commit 5cff6cdb90
No known key found for this signature in database
GPG Key ID: 52B8F5AC97A2DA86
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ services:
volumes: volumes:
- ./uploads:/app/wp-content/uploads - ./uploads:/app/wp-content/uploads
ports: ports:
- 8080:8080 - 127.0.0.1:12001:8080
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
- MYSQL_DATABASE - MYSQL_DATABASE

4
test
View File

@ -18,7 +18,7 @@ docker-compose up -d
# Wait for the web server to respond # Wait for the web server to respond
cont=0 cont=0
echo -n "Espera al servidor web " echo -n "Espera al servidor web "
while ! curl -s localhost:8080 > /dev/null; do while ! curl -s localhost:12001 > /dev/null; do
echo -n "." echo -n "."
cont=$((cont+1)) cont=$((cont+1))
if [ "$cont" == 30 ]; then if [ "$cont" == 30 ]; then
@ -30,7 +30,7 @@ while ! curl -s localhost:8080 > /dev/null; do
done done
echo " connectado" echo " connectado"
STR=`curl -s localhost:8080 |grep "Hello world!"` STR=`curl -s localhost:12001 |grep "Hello world!"`
tear_down tear_down
if [[ "$STR" == "" ]] if [[ "$STR" == "" ]]