Adding task scheduler to a single container #297
-
In order to support review apps, I would need to run the scheduler directly within the main php docker container (e.g. most SAAS platforms such as render, vercel or heroku make it very hard to share volumes). As my main laravel container depends on files being generated by the scheduler it would be advantageous (at least for the review app) to run the scheduler in the main container. Since s6 is being used, I would assume this should be possible. Any guidance would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I run two containers:
My philosophy is one container should do ONE THING very well. https://serversideup.net/open-source/docker-php/docs/laravel/laravel-task-scheduler |
Beta Was this translation helpful? Give feedback.
I guess my comment above doesn't answer your question fully (sorry, I am rampaging through my inbox now):
I would highly recommend following my method above.
If you are force to do everything in one container, you'll have to create your own S6 service an monitor it https://github.com/just-containers/s6-overlay