Comments (5)
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.
The trade-offs of that particular scenario are (as far as I can tell):
- having to have
supervisord
(or any other pkg) to ensure that services are running - 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.
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.
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.
Adressed in #30
from php-docker-template.
Related Issues (20)
- Document Docker on k8s specifics HOT 2
- Reduce CircleCI configuration complexity HOT 1
- Get rid of `if` usage in nginx config
- Rename virtual name in PHP docker extension helper scripts to something specific
- Move composer to dev images
- template php-fpm config HOT 5
- The image should be shipped with `app` user
- Enable Docker buildkit
- Add python linting HOT 2
- For versions in "Security Support" only build on new releases
- Document images EOL strategy HOT 1
- Enforce versions (Semantically) in the ext helper scripts HOT 2
- Migrate to Github Actions
- Format PHP-FPM logs as JSON HOT 3
- Rebuild images off latest upstream to fix iconv bug HOT 2
- Enable recommended php configuration by default
- Introduce strategy for cleaning up outdated tags
- Improve test suite organisation
- Translate SIGTERM into SIGQUIT for php-fpm container HOT 1
- Introduce PHP Prometheus Exporter image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-docker-template.