LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Placeholders in Docker Labels ? (https://www.linuxquestions.org/questions/linux-containers-122/placeholders-in-docker-labels-4175707717/)

JamesMore 02-08-2022 08:52 PM

Placeholders in Docker Labels ?
 
In a compose file is it possible to use placeholders in the names of labels that can be pulled from the name of the container or the name of the service ?

Code:

  labels:
      service.switch.routers.%Name%.entryPoints: web
      service.switch.routers.%Service_Name%.entryPoints: web



All times are GMT -5. The time now is 12:03 AM.