aspendigital / docker-octobercms

Dockerized October CMS: PHP, Composer, October core and dependencies
MIT License
150 stars 54 forks source link

Enable Supervisor? #44

Open jacksun101 opened 3 years ago

jacksun101 commented 3 years ago

Can we have an additional variable like ENABLE_SUPERVISOR? And this is going to install the supervisor, config file and run. For the sake of database queues. For example, it might look like this.

Making sense?

petehalverson commented 3 years ago

@jacksun101 Yes, that makes sense. I've introduced SUPERVISOR in other images for other purposes (e.g. octodock), but hesitate to suggest it for a worker. I see the benefits of creating a separate worker container.

What is the advantage to introducing another process for this in the container over the default sync?

That said, maybe support for a SUPERVISOR CRON process makes more sense than the current examples.

Thoughts?