TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.24 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.33k stars 721 forks source link

Weird Issue with Volumes. #154

Closed illmaren closed 1 month ago

illmaren commented 8 months ago

Hi,

Got quite the weird issue with the volumes...meaning if I add one the whole container stops working.

Its already possible with the example commands from the README

docker run -p 80:8080 trafex/php-nginx is possible

docker run -p 800:8080 -v srv/test:/var/www/html trafex/php-nginx throws no errors but 127.0.0.1:800 shows nothing but the browser (webseite not found) Message.

The concerning directory /srv/test belongs to nobody:nogroup Within the directory no files appear so kind of a permission issue but not due to it being nobody:nogroup? I'm quite confused here.

TrafeX commented 7 months ago

Hi @illmaren ,

Are you sure you're refering to a mount with an absolute path. You mention srv/test, but it probably should be /srv/test. Do you have an index.php file in that folder?

illmaren commented 7 months ago

Not sure why its not as absolute path here but I tried it with absolute paths.

docker run -p 800:8080 -v /srv/test:/var/www/html trafex/php-nginx -d

My last command regarding the whole topic on my machine. and with this it didn't work.

TrafeX commented 7 months ago

Hi @illmaren,

Okay. Can you answer my second questions as well? What's in the /srv/test folder? Is there a index.php file?

TrafeX commented 1 month ago

I'll close this issue due to inactivity.