This a dummy working Django project to use for learning purposes. Application is fully deployed on a vm DigitalOcean instance (not "app"). The application is an exercise based on a local development required by a French Python's Developer curriculum (Openclassroom).
As a learning purposes we have a simple iterating execution creation:
Postgresql host is the first created with a default ip: 172.17.0.2
Nginx host is the second created with a default ip: 172.17.0.3
Web host (Gunicorn and Django) is the last one create, with a default ip: 172.17.0.4
When the "droplet" (DigitalOcean virtual machine) is turned of and then turned on, we can observe changes. Example the Nginx service get 172.17.0.2.
When the swarm is destroy and recreated (at each ci/cd exectuion) there is no such issue.