@@ -49,20 +49,36 @@ RUN mkdir -p /var/log/fba
4949
5050EXPOSE 8001
5151
52- CMD ["/usr/local/bin/granian " , "main:app" , "--interface " , "asgi" , "--host" , "0.0.0.0" , "--port" , "8000 " ]
52+ CMD ["supervisord " , "-c " , "/etc/supervisor/supervisord.conf " ]
5353
54- # === Celery server image ===
55- FROM base_server AS fba_celery
54+ # === Celery Worker image ===
55+ FROM base_server AS fba_celery_worker
5656
57- COPY deploy/backend/fba_celery .conf /etc/supervisor/conf.d/
57+ COPY deploy/backend/fba_celery_worker .conf /etc/supervisor/conf.d/
5858
5959RUN mkdir -p /var/log/fba
6060
61- RUN chmod +x celery-start.sh
61+ CMD ["supervisord" , "-c" , "/etc/supervisor/supervisord.conf" ]
62+
63+ # === Celery Beat image ===
64+ FROM base_server AS fba_celery_beat
65+
66+ COPY deploy/backend/fba_celery_beat.conf /etc/supervisor/conf.d/
67+
68+ RUN mkdir -p /var/log/fba
69+
70+ CMD ["supervisord" , "-c" , "/etc/supervisor/supervisord.conf" ]
71+
72+ # === Celery Flower image ===
73+ FROM base_server AS fba_celery_flower
74+
75+ COPY deploy/backend/fba_celery_flower.conf /etc/supervisor/conf.d/
76+
77+ RUN mkdir -p /var/log/fba
6278
6379EXPOSE 8555
6480
65- CMD ["./celery-start.sh " ]
81+ CMD ["supervisord" , "-c" , "/etc/supervisor/supervisord.conf " ]
6682
6783# Build image
6884FROM ${SERVER_TYPE}
0 commit comments