Docker-compose with django backend when run in CentOS keeps failing after working for sometime. The deployment config is as follows
Addons: Celery + Rabbitmq
Note: Only Backend service fails while executing while frontend works fine.
The Docker-compose.yml file is as follows. Any insight might be helpful. Thanks in advance:
version: '3' services: backend: build: ./Backend/src/ command: gunicorn compfie2.wsgi --bind 0.0.0.0:9000 --threads 2 volumes: - ./Backend/src:/Backend ports: - "9000:9000" nginx: image: nginx:latest ports: - "8080:8080" depends_on: - backend rabbitmq: container_name: "rabbitmq" image: rabbitmq:3.8-management-alpine ports: - '5672:5672' - '15672:15672' celery: build: context: ./Backend/src/ command: celery -A compfie2 worker -l info depends_on: - rabbitmq angular: build: ./Frontend/ ports: - "4200:80" `