mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
[Docker] Allow to define port via HTTP_PORT (#2285)
This commit is contained in:
parent
11be390e65
commit
793c55f43d
@ -25,5 +25,13 @@ while IFS= read -r -d '' file; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# This feature can set the internal port that apache uses to something else.
|
||||||
|
# If docker is run on network:service mode, no two containers can use port 80
|
||||||
|
# To use this, start the container with the additional environment variable "HTTP_PORT"
|
||||||
|
if [ ! -z ${HTTP_PORT} ]; then
|
||||||
|
sed -i "s/80/$HTTP_PORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Start apache
|
# Start apache
|
||||||
apache2-foreground
|
apache2-foreground
|
||||||
|
Loading…
Reference in New Issue
Block a user