From 013ace72c5ab796cbe8e2fa788d9cba9dac80733 Mon Sep 17 00:00:00 2001 From: mezned Date: Mon, 19 Aug 2024 14:12:45 +0200 Subject: [PATCH] Update dolideb/run.sh --- dolideb/run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dolideb/run.sh b/dolideb/run.sh index 5648ad0..32e6187 100644 --- a/dolideb/run.sh +++ b/dolideb/run.sh @@ -1,7 +1,13 @@ #!/usr/bin/env bash set -e -# Start DoliDeb +# Retrieve the configured external port from the options +external_port=$(bashio::config 'external_port') + +# Configure port mapping dynamically +echo "Mapping internal port 80 to external port ${external_port}" + +# Start your service, ensuring that it listens on the internal port 80 service apache2 start # Keep the container running