Because traefik is an external network provided by the Traefik service, it is declared as such. My blog web app consists of multiple Docker services:
- blog: the actual blog web app that runs Wagtail (a Python CMS built on top of Django).
For these services to communicate with each other, I specified an internal network named blog.
Because the postgres, redis and elasticsearch service will only be used internally by our web app, we disable Traefik on them and connect them only to the blog network. So I added the following sections to each of these services: