Traefik Service

Type: object

Create a traefik service for a given service


Example:

{
    "stacks": [
        {
            "app": "my_app_name",
            "tags": [
                "traefik-svc"
            ],
            "vars": [
                {
                    "traefik_svc_entrypoints": "web,websecure"
                },
                {
                    "traefik_svc_port": 8080
                },
                {
                    "traefik_svc_group": "trafik_prod"
                }
            ]
        }
    ]
}

Type: object

Add correct traefik labels for a given service. Also append traefik network if not already present.

Type: object

Type: string Default: "${app_ns}_${app_name}"

Traefik key name of the service, must NOT contains dot (dynamic)

Type: string Default: true

Determine if network is external or not

Type: string Default: "$app_network"

Name of the key in networks:{} as in docker-compose

Type: string Default: "$app_namespace-traefik"

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.

Type: number Default: 0

Determine traefik network priority

Type: string Default: "_"

String to separe names

Type: string Default: null

Service Authentication to use

Type: string Default: null

Certresolver of the application

Type: string Default: "web"

Traefik entrypoints of the application

Type: string Default: "$traefik_svc_name.$vars.app_domain"

Fully Qualified Domain Name of the application (dynamic)

Type: string Default: "$app_namespace-traefik"

Traefik group name to assign this container, add more separated with comma

Type: string Default: "$app_service"

Name of the key in services:{} as in docker-compose

Type: string Default: "$app_service"

First part of the FQDN (dynamic)

Type: string Default: "80"

Listening port of the application

Type: integer Default: null

The application rule priority, higher means processed first

Type: string Default: null

Rule to match this app

Type: string Default: null

Rule to append to the default rule

Type: boolean Default: false

The application is availalble on TLS

Type: array Default: []

The domains to support

Type: string Default: "http"

Protocol type: http, tcp, udp