mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 22:00:23 +02:00
docker: Switch to nginx in docker image (#2721)
Co-authored-by: Yaman Qalieh <ybq987@gmail.com>
This commit is contained in:
@@ -32,9 +32,11 @@ done
|
||||
# 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
|
||||
sed -i "s/80/$HTTP_PORT/g" /etc/nginx/sites-enabled/default
|
||||
fi
|
||||
|
||||
# nginx will daemonize
|
||||
nginx
|
||||
|
||||
# Start apache
|
||||
apache2-foreground
|
||||
# php-fpm will not
|
||||
php-fpm
|
||||
|
Reference in New Issue
Block a user