docker-compose nginx and php-fpm need to share code folder?
up vote
0
down vote
favorite
Why every tutorial that I find on the web always share the code folder between the two machines?
If i'm setting two different machines, its the same that have two physical machines, let's say nginx server on california and php server in florida.
On my understanding, the fastcgi protocol is sending the data through the networks right?
Thats why we are using IP:PORT right?
So nginx ask the machine that understand php to process the data sending to that IP:PORT through fastcgi and getting the processed response to show to the browser right?
Or am I crazy?
php docker nginx docker-compose
add a comment |
up vote
0
down vote
favorite
Why every tutorial that I find on the web always share the code folder between the two machines?
If i'm setting two different machines, its the same that have two physical machines, let's say nginx server on california and php server in florida.
On my understanding, the fastcgi protocol is sending the data through the networks right?
Thats why we are using IP:PORT right?
So nginx ask the machine that understand php to process the data sending to that IP:PORT through fastcgi and getting the processed response to show to the browser right?
Or am I crazy?
php docker nginx docker-compose
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required fornginx+php-fpmas such. Then again, we can't be sure unless you share what it is that you trying.
– Pramodh Valavala
Nov 11 at 5:31
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Why every tutorial that I find on the web always share the code folder between the two machines?
If i'm setting two different machines, its the same that have two physical machines, let's say nginx server on california and php server in florida.
On my understanding, the fastcgi protocol is sending the data through the networks right?
Thats why we are using IP:PORT right?
So nginx ask the machine that understand php to process the data sending to that IP:PORT through fastcgi and getting the processed response to show to the browser right?
Or am I crazy?
php docker nginx docker-compose
Why every tutorial that I find on the web always share the code folder between the two machines?
If i'm setting two different machines, its the same that have two physical machines, let's say nginx server on california and php server in florida.
On my understanding, the fastcgi protocol is sending the data through the networks right?
Thats why we are using IP:PORT right?
So nginx ask the machine that understand php to process the data sending to that IP:PORT through fastcgi and getting the processed response to show to the browser right?
Or am I crazy?
php docker nginx docker-compose
php docker nginx docker-compose
asked Nov 10 at 18:58
Mateus Silva
818
818
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required fornginx+php-fpmas such. Then again, we can't be sure unless you share what it is that you trying.
– Pramodh Valavala
Nov 11 at 5:31
add a comment |
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required fornginx+php-fpmas such. Then again, we can't be sure unless you share what it is that you trying.
– Pramodh Valavala
Nov 11 at 5:31
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required for
nginx + php-fpm as such. Then again, we can't be sure unless you share what it is that you trying.– Pramodh Valavala
Nov 11 at 5:31
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required for
nginx + php-fpm as such. Then again, we can't be sure unless you share what it is that you trying.– Pramodh Valavala
Nov 11 at 5:31
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242380%2fdocker-compose-nginx-and-php-fpm-need-to-share-code-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Its usually better to give us some code of what you are trying, but from what you are saying, I don't really think a shared code folder is required for
nginx+php-fpmas such. Then again, we can't be sure unless you share what it is that you trying.– Pramodh Valavala
Nov 11 at 5:31