diff --git a/docs/networking/proxies/caddy.md b/docs/networking/proxies/caddy.md index b437d6a3f..ed713f960 100644 --- a/docs/networking/proxies/caddy.md +++ b/docs/networking/proxies/caddy.md @@ -3,7 +3,7 @@ > [!IMPORTANT] > New as of 0.28.0 -Dokku provides integration with the [Caddy](https://caddyserver.com/) proxy service by utilizing the Docker label-based integration implemented by Caddy. +Dokku provides integration with the [Caddy](https://caddyserver.com/) proxy service by utilizing the Docker label-based integration implemented by [Caddy Docker Proxy](https://github.com/lucaslorentz/caddy-docker-proxy). ``` caddy:report [] [] # Displays a caddy report for one or more apps @@ -117,6 +117,54 @@ dokku caddy:set --global log-level DEBUG After modifying, the Caddy container will need to be restarted. +### Label Management + +The Caddy plugin allows you to add custom container labels to apps. These labels are injected into containers during deployment and can be used to configure Caddy behavior beyond what the plugin provides by default. + +Refer to the upstream [caddy-docker-proxy](https://github.com/lucaslorentz/caddy-docker-proxy) documentation for more information on what labels are available. + +#### Adding a label + +To add a custom container label to an app, use the `caddy:label:add` command: + +```shell +dokku caddy:label:add node-js-app caddy.directive value +``` + +This will add the label `caddy.directive=value` to the app's containers. After adding a label, you will need to rebuild or redeploy the app for the label to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Removing a label + +To remove a custom container label from an app, use the `caddy:label:remove` command: + +```shell +dokku caddy:label:remove node-js-app caddy.directive +``` + +This will remove the specified label from the app. After removing a label, you will need to rebuild or redeploy the app for the change to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Showing labels + +To view all custom container labels for an app, use the `caddy:label:show` command: + +```shell +dokku caddy:label:show node-js-app +``` + +To view a specific label value, provide the label name: + +```shell +dokku caddy:label:show node-js-app caddy.directive +``` + ### SSL Configuration The caddy plugin only supports automatic ssl certificates from its letsencrypt integration. Managed certificates provided by the `certs` plugin are ignored. diff --git a/docs/networking/proxies/haproxy.md b/docs/networking/proxies/haproxy.md index eda8e27bd..eeba92578 100644 --- a/docs/networking/proxies/haproxy.md +++ b/docs/networking/proxies/haproxy.md @@ -113,6 +113,54 @@ dokku haproxy:set --global log-level DEBUG After modifying, the Haproxy container will need to be restarted. +### Label Management + +The Haproxy plugin allows you to add custom container labels to apps. These labels are injected into containers during deployment and can be used to configure Haproxy behavior beyond what the plugin provides by default. + +Refer to the upstream [EasyHaproxy](https://github.com/byjg/docker-easy-haproxy) documentation for more information on what labels are available. + +#### Adding a label + +To add a custom container label to an app, use the `haproxy:label:add` command: + +```shell +dokku haproxy:label:add node-js-app haproxy.directive value +``` + +This will add the label `haproxy.directive=value` to the app's containers. After adding a label, you will need to rebuild or redeploy the app for the label to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Removing a label + +To remove a custom container label from an app, use the `haproxy:label:remove` command: + +```shell +dokku haproxy:label:remove node-js-app haproxy.directive +``` + +This will remove the specified label from the app. After removing a label, you will need to rebuild or redeploy the app for the change to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Showing labels + +To view all custom container labels for an app, use the `haproxy:label:show` command: + +```shell +dokku haproxy:label:show node-js-app +``` + +To view a specific label value, provide the label name: + +```shell +dokku haproxy:label:show node-js-app haproxy.directive +``` + ### SSL Configuration The haproxy plugin only supports automatic ssl certificates from it's letsencrypt integration. Managed certificates provided by the `certs` plugin are ignored. diff --git a/docs/networking/proxies/openresty.md b/docs/networking/proxies/openresty.md index 1a275de05..b56db421b 100644 --- a/docs/networking/proxies/openresty.md +++ b/docs/networking/proxies/openresty.md @@ -124,6 +124,54 @@ The following folders within an app repository may have `*.conf` files that will - `openresty/http-includes/`: Injected in the `server` block serving http(s) requests for the app. - `openresty/http-location-includes/`: Injected in the `location` block that proxies to the app in the app's respective `server` block. +### Label Management + +The OpenResty plugin allows you to add custom container labels to apps. These labels are injected into containers during deployment and can be used to configure OpenResty behavior beyond what the plugin provides by default. + +Refer to the upstream [openresty-docker-proxy](https://github.com/dokku/openresty-docker-proxy) documentation for more information on what labels are available. + +#### Adding a label + +To add a custom container label to an app, use the `openresty:label:add` command: + +```shell +dokku openresty:label:add node-js-app openresty.directive value +``` + +This will add the label `openresty.directive=value` to the app's containers. After adding a label, you will need to rebuild or redeploy the app for the label to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Removing a label + +To remove a custom container label from an app, use the `openresty:label:remove` command: + +```shell +dokku openresty:label:remove node-js-app openresty.directive +``` + +This will remove the specified label from the app. After removing a label, you will need to rebuild or redeploy the app for the change to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Showing labels + +To view all custom container labels for an app, use the `openresty:label:show` command: + +```shell +dokku openresty:label:show node-js-app +``` + +To view a specific label value, provide the label name: + +```shell +dokku openresty:label:show node-js-app openresty.directive +``` + ### SSL Configuration The OpenResty plugin only supports automatic ssl certificates from it's letsencrypt integration. Managed certificates provided by the `certs` plugin are ignored. diff --git a/docs/networking/proxies/traefik.md b/docs/networking/proxies/traefik.md index 3d8fe76f5..f8163fca0 100644 --- a/docs/networking/proxies/traefik.md +++ b/docs/networking/proxies/traefik.md @@ -127,6 +127,54 @@ dokku traefik:set --global log-level DEBUG After modifying, the Traefik container will need to be restarted. +### Label Management + +The Traefik plugin allows you to add custom container labels to apps. These labels are injected into containers during deployment and can be used to configure Traefik behavior beyond what the plugin provides by default. + +Refer to the upstream [Traefik](https://doc.traefik.io/traefik/) documentation for more information on what labels are available. + +#### Adding a label + +To add a custom container label to an app, use the `traefik:label:add` command: + +```shell +dokku traefik:label:add node-js-app traefik.directive value +``` + +This will add the label `traefik.directive=value` to the app's containers. After adding a label, you will need to rebuild or redeploy the app for the label to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Removing a label + +To remove a custom container label from an app, use the `traefik:label:remove` command: + +```shell +dokku traefik:label:remove node-js-app traefik.directive +``` + +This will remove the specified label from the app. After removing a label, you will need to rebuild or redeploy the app for the change to be applied to running containers. + +```shell +dokku ps:rebuild node-js-app +``` + +#### Showing labels + +To view all custom container labels for an app, use the `traefik:label:show` command: + +```shell +dokku traefik:label:show node-js-app +``` + +To view a specific label value, provide the label name: + +```shell +dokku traefik:label:show node-js-app traefik.directive +``` + ### SSL Configuration The traefik plugin only supports automatic ssl certificates from it's letsencrypt integration. Managed certificates provided by the `certs` plugin are ignored.