I have a Django container serving a web app using gunicorn. This Django container is linked to a nginx container which acts as a proxy. The setup works fine.
From time to time I update my Django app and I recreate the container. When I do this, the nginx container loses connection and does not forward the requests to the Django container any more. I tried stopping and starting the nginx container but the link is not recovered. The only alternative is to delete the nginx container and recreate it.
Is there an easier way to recover the link without recreating the nginx container.