Create a traefik service for a given service
{
"stacks": [
{
"app": "my_app_name",
"tags": [
"traefik-svc"
],
"vars": [
{
"traefik_svc_entrypoints": "web,websecure"
},
{
"traefik_svc_port": 8080
},
{
"traefik_svc_group": "trafik_prod"
}
]
}
]
}
Add correct traefik labels for a given service. Also append traefik network if not already present.
Traefik key name of the service, must NOT contains dot (dynamic)
Determine if network is external or not
Name of the key in networks:{} as in docker-compose
Name of the docker network to use
Determine traefik network priority
String to separe names
Service Authentication to use
Certresolver of the application
Traefik entrypoints of the application
Fully Qualified Domain Name of the application (dynamic)
Traefik group name to assign this container, add more separated with comma
Name of the key in services:{} as in docker-compose
First part of the FQDN (dynamic)
Network to use to reach this app, no need to configure except you kwno what to do, you can"t use it if you want to expose this app to multiple traefik with dedicated interfaces. CAnnot be used multi time.
Listening port of the application
Rule to match this app
Rule to append to the default rule
The application is availalble on TLS
The domains to support