Updated docker version
This commit is contained in:
commit
f92554c2a1
|
@ -34,6 +34,7 @@ ENV PASSWORD=password
|
||||||
ENV TELEMETRY=false
|
ENV TELEMETRY=false
|
||||||
ENV ENABLE_ID_OBFUSCATION=false
|
ENV ENABLE_ID_OBFUSCATION=false
|
||||||
ENV REDACT_IP_ADDRESSES=false
|
ENV REDACT_IP_ADDRESSES=false
|
||||||
|
ENV WEBPORT=80
|
||||||
|
|
||||||
# Final touches
|
# Final touches
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ if [ "$MODE" == "backend" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Set up index.php for frontend-only or standalone modes
|
# Set up index.php for frontend-only or standalone modes
|
||||||
if [ "$MODE" == "frontend" ]; then
|
if [ "$MODE" == "frontend" ]; then
|
||||||
cp /speedtest/frontend.php /var/www/html/index.php
|
cp /speedtest/frontend.php /var/www/html/index.php
|
||||||
|
@ -54,6 +53,12 @@ fi
|
||||||
|
|
||||||
chown -R www-data /var/www/html/*
|
chown -R www-data /var/www/html/*
|
||||||
|
|
||||||
|
# Allow selection of Apache port for network_mode: host
|
||||||
|
if [ "$WEBPORT" != "80" ]; then
|
||||||
|
sed -i "s/^Listen 80\$/Listen $WEBPORT/g" /etc/apache2/ports.conf
|
||||||
|
sed -i "s/*:80>/*:$WEBPORT>/g" /etc/apache2/sites-available/000-default.conf
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done, Starting APACHE"
|
echo "Done, Starting APACHE"
|
||||||
|
|
||||||
# This runs apache
|
# This runs apache
|
||||||
|
|
Loading…
Reference in a new issue