Improve labels example
This commit is contained in:
parent
3d9f19b630
commit
bb23a55c8a
2 changed files with 7 additions and 2 deletions
|
@ -694,7 +694,7 @@ Default::
|
|||
Example::
|
||||
+
|
||||
----
|
||||
{"com.example.foo":"bar"}
|
||||
{"com.example.foo":"bar","traefik.enable":"true","traefik.http.routers.my-service.entrypoints":"web","traefik.http.routers.my-service.rule":"Host(`my-service.localhost`)"}
|
||||
----
|
||||
|
||||
|
||||
|
|
|
@ -118,7 +118,12 @@ in
|
|||
service.labels = mkOption {
|
||||
type = attrsOf str;
|
||||
default = {};
|
||||
example = { "com.example.foo" = "bar"; };
|
||||
example = {
|
||||
"com.example.foo" = "bar";
|
||||
"traefik.enable" = "true";
|
||||
"traefik.http.routers.my-service.rule" = "Host(`my-service.localhost`)";
|
||||
"traefik.http.routers.my-service.entrypoints" = "web";
|
||||
};
|
||||
description = dockerComposeRef "labels";
|
||||
};
|
||||
service.links = mkOption {
|
||||
|
|
Loading…
Reference in a new issue