Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using phpdockerio/php72-fpm with nginx on the server #19

Closed
avxkim opened this issue Oct 14, 2018 · 1 comment
Closed

Using phpdockerio/php72-fpm with nginx on the server #19

avxkim opened this issue Oct 14, 2018 · 1 comment

Comments

@avxkim
Copy link

avxkim commented Oct 14, 2018

Launched container:

docker run -d --restart always phpdockerio/php72-fpm -p 9090:9000

Here's nginx config (nginx installed on the local machine without docker containers):

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass localhost:9090;
        fastcgi_index index.php;
        include fastcgi.conf;
    }

But nginx throws 404 not found errors in a log. What i am doing wrong?

@luispabon
Copy link
Contributor

You aren't providing your application code to the php-fpm container. Generate a docker-compose environment at https://phpdocker.io and see how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants