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

explore different ways of combining nginx and php-fpm #1

Open
bpow opened this issue Jun 3, 2023 · 0 comments
Open

explore different ways of combining nginx and php-fpm #1

bpow opened this issue Jun 3, 2023 · 0 comments

Comments

@bpow
Copy link
Contributor

bpow commented Jun 3, 2023

  • Nginx doesn't use env variables in its config files... So changing the upstream would require using HOSTALIASES or something. Or have a script to make the nginx default.conf from a template using env variables at startup... That would require that the place where default.conf goes be writable by whichever user runs it
  • Maybe nginx should just be a completely different container/image (like nginxinc/nginx-unprivileged)? But then we'd still need access to the static files to be able to serve those-- so could mount as shared space, or just also copy those into that image, too...
  • Right now, php-fpm is listening on a port, but could listen on a socket if it was in the same pod/container as nginx. That might involve using a sidecar in k8s or something like supervisord to run both nginx and php-fpm in the same container.
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

1 participant