1
0
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:
Dag
2022-05-12 02:19:25 +02:00
committed by GitHub
parent fcc3707210
commit 829fc6cca2
4 changed files with 34 additions and 18 deletions

View File

@@ -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