Add/remove S6 services #378
terax6669
started this conversation in
Ideas & Feature Requests
Replies: 1 comment
-
I have created a discussion #377 to create a new container just for nginx. One of the points I have in mind is running different containers per service, nginx, fpm container for the app, fpm for queues, fpm for scheduler etc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👉 Describe the problem
I want to run a single container that will handle all background tasks, like scheduler and queue for Laravel.
👥 Problem evidence & reach
Everyone? O_o

🏆 How to solve this problem
Unnecessary services - nginx and php-fpm (#373)
There is no way to disable them. Docs suggest running a separate container for each background task so we're running unnecessary services in all non-web containers.
Adding custom services
Docs suggest we might create additional s6 services:
However there is no example of how to do that. I personally find S6's documentation extremely chaotic. It'd be nice to include an example for easy starting point.
Laravel support?
Maybe we could get some automation for example by passing some config for serversideup image startup scripts?
Seems very easy to automate the scheduler, but much more complex for queues, because you have to define a number of queue workers, a bunch of parameters which could potentially be different for every worker.
Current yaml:
Imaginary yaml:
🥰 Describe the "impact" on users?
Lower resource usage. Especially since every container starts with nginx and php-fpm running.
💯 How do we validate the problem is solved?
Users are able to customize what services are running.
Beta Was this translation helpful? Give feedback.
All reactions