See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
The main key is to create two network interfaces, one will be used with traefik and the other one will be used for the containers to communicate with each other
In the yml
file I called them application
and traefik
, then you need to tell Traefik via the labels
to use one of them.
When you deploy a stack you will have a name for it, which is also used as a prefix for the netwroks .. etc, to make
it simple we will use the environment variables, so that we can have a flixable yml
file.