Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multiple supervisor.conf for two different projects

Can I use different supervisor.conf file for different django-celery projects.

I have created separate supervisors for both of them in project itself but supervisor just works with one. Is there any way to keep configuration file separately for both of them and still able to use supervisor demon for both of them.

note: I have not created supervisor.conf file in /etc/supervisor/conf.d directory.

like image 306
Pooja Avatar asked Mar 17 '15 11:03

Pooja


1 Answers

we had the same issue, just running same project for two different docker services - one for API (flask), and second for offline processing (celery)

this is the command section from our docker-compose

command: bash -c "echo -e \"[include]\nfiles = /svc/etc/supervisord/*\" > unified.conf
                  && supervisord -c unified.conf"

first we create the file, and then running the supervisord command

like image 79
gCoh Avatar answered Oct 21 '22 22:10

gCoh