Modifying php.ini values + supervisord for queues #2156
-
Hey all - I'm trying out Coolify and love it so far but need some help on two questions I'm stuck on. I'm deploying a simple Laravel application and nixpacks is reading my
This works great but I'm stuck on two points and hoping someone can help. Question 1: modifying PHP configurationI cannot figure out how to modify After digging around into nixpacks, it seems like the only way is to modify the nixpacks start cmd to pull in a custom Question 2: using supervisord to work Laravel queuesWhen using something like Laravel Forge, they let you configure a daemon really easily, using supervisord under the hood to run the simple I've deployed my application, but how do I configure the worker to run as well? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've been able to answer my own question here and I've written a detailed post on how I've customised the |
Beta Was this translation helpful? Give feedback.
-
Hi @marcfowler - thanks for posting this, it was really helpful to help me figure out how to set up a config with Laravel Horizon (similarly to your queues). I've made an example repo for reference here. It seems to be working, but I'm unsure about the opcache bit to be honest... One thing - it may have just been me, but one thing I noticed when I ran yours directly is that my server CPU usage climbed and then stayed permantly on max (200% as 2 cores). I'm unsure if this was something I was doing wrong, but thought it may be worth mentioning in case it helps you spot anything! Thanks again! |
Beta Was this translation helpful? Give feedback.
I've been able to answer my own question here and I've written a detailed post on how I've customised the
nixpacks.toml
file to extend the default PHP provider, pass inphp.ini
values through nginx, and also start supervisor workers to process queues. Hopefully this is useful to others searching!