diff --git a/docker-compose.yml b/docker-compose.yml index 224211b..ee115e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -74,9 +74,17 @@ services: web: image: nginx:alpine volumes: - - $VOLDIR/launcher/nginx.cfg:/etc/nginx/conf.d/media.conf + - $VOLDIR/nginx/nginx.cfg:/etc/nginx/conf.d/media.conf + - $VOLDIR/nginx/Muximux:/www restart: always ports: - "80:80" depends_on: - plexpy + + php: + image: php:fpm-alpine + working_dir: /www + volumes: + - $VOLDIR/nginx/Muximux:/www + diff --git a/nginx.cfg b/nginx.cfg index 7b1b3a7..fe2c86a 100644 --- a/nginx.cfg +++ b/nginx.cfg @@ -3,6 +3,18 @@ server { listen 80 default_server; server_name ""; + location / { + location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } + } + location /plex { set $test "";