Docker-compose with django backend when run in CentOS keeps failing after working for sometime. The deployment config is as follows
Frontend: Angular
Backend: Django
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:
I am afraid this is not enough information to get an idea of what might be wrong, especially since this appears to be a custom created image for a custom application.
Please share logs that show the actual error message and the lines surrounding it.
When you write “keeps failing after working for sometime”, you mean it was working with Docker Desktop for Linux before? If yes, with which version did it work and with which version doesn’t it work anymore? Furthermore, I am interested to understand what makes you conclude this behavior is caused by Docker Desktop for Linux and not the application itself.
The logs show no error message instead just simply not loading/registering anything. However, the application works in one Linux server while it fails in another server with similar configuration. The docker version is also the same in both server. By writing “fails”, I mean that the application builds properly with docker-compose up --build and the frontend angular works properly. The problem occurs with backend Django while angular tries to connect with Django.
Here’s the docker info for your reference (same for both servers):