Giter Site home page Giter Site logo

Comments (5)

renatomefi avatar renatomefi commented on August 28, 2024

I rather have them together, losing unix socket in pro to have a more granulate architecture is not an advantage imho.
We either deliver web or interact-less (cli) PHP applications, I don't see advantage on scaling fpm and not nginx or vice-versa

from php-docker-template.

lcobucci avatar lcobucci commented on August 28, 2024

The trade-offs of that particular scenario are (as far as I can tell):

  1. having to have supervisord (or any other pkg) to ensure that services are running
  2. consolidating logs from nginx, php-fpm, and app using the same format in a consistent way is a bit more challenging

What are the ones involved on splitting things (apart of losing unix sockets)?

from php-docker-template.

renatomefi avatar renatomefi commented on August 28, 2024

After talking with @stevenjm :
As long as we manage to keep both containers in the same namespace we can share the socket and have "no" performance degradation, so this should be considered when deploying php and nginx containers imho

from php-docker-template.

lcobucci avatar lcobucci commented on August 28, 2024

As long as we manage to keep both containers in the same namespace

I think this is a must anyway, we already decided that every pod will have all containers to run the application.

@stevenjm @renatomefi could you give us some examples of nginx configuration that allow us to achieve that? I assume that this is the main point:

fastcgi_pass   unix:/var/run/php7.1-fpm.sock;

from php-docker-template.

frankkoornstra avatar frankkoornstra commented on August 28, 2024

Adressed in #30

from php-docker-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.