Layer 7 routing labels reference

Estimated reading time: 1 minute

Once the layer 7 routing solution is enabled, you can start using it in your swarm services.

The following labels are available for you to use in swarm services:

Label Description Example Comma separated list of the hosts that the service should serve., Port to use for internal upstream communication. 8080 Name of network the proxy service should attach to for upstream connectivity. app-network-a Context or path to use for the application. /app Boolean to enable rewrite for the context root. true Boolean to force SSL for application. true Docker secret to use for the SSL certificate. Docker secret to use for the SSL key. Comma separated list of endpoints to configure to be upgraded for websockets. /ws,/foo Name of the service cluster to use for the application. us-east Enable SSL communication to the upstreams. true Verification mode for the upstream TLS. none Cookie to use for sticky sessions. none Semi-colon separated list of redirects to add in the format of <source>,<target>. Example:,; none Enable SSL passthrough. false
routing, proxy