-
Notifications
You must be signed in to change notification settings - Fork 82
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
Question regarding running app + horizon + scheduler #61
Comments
According to best practices, it is recommended to have one container for each process. However, for small to medium projects with low scales, I personally opt to use a single container to host all services. |
@smortexa thanks for the reply. I have initially build each container with the corresponding destination as per the instructions:
But when running jobs, i noticed a very strange error that was not occuring when running container queue: Tried changing queue driver to database or redis, only sync worked without this error. Thing is that in local dev env i tried both redis and database drivers and they work without any issues. I believe this is caused by the fact that I was running this three containers simultaneously. Currently, I have opted to build the image using This way I run app + horizon in one container and finally I run Not sure if this helps in any way, but I'm posting what I discovered. Thanks again for the hard work! |
I didn't have enough time to investigate this further, but I will try to create a staging environment from scratch and run the initial configuration. Either way, so far so good. The initial question was about best practices and I thank you for the reply. PS: A donate link would be useful! |
Hello!
First of all, congrats on this amazing project!
I have a very stupid question being kind of new to containerisation. I have a project running app, horizon and scheduler. What's the best approach to run the container(s)?
I've build the container using FrankenPHP. Do I need to run a container for each service (app,horizon,scheduler) separately? Or can it be done in a single container instance?
Best,
Tudor
The text was updated successfully, but these errors were encountered: