Set docker.group label for all containers so monitoring can group them

This commit is contained in:
Florian Zirker 2021-03-16 22:15:47 +01:00
parent a938fb02fe
commit e8e8b79de8
6 changed files with 9 additions and 6 deletions

View file

@ -21,6 +21,7 @@ services:
- "traefik.http.routers.pyload.entrypoints=web"
- "traefik.http.services.pyload.loadbalancer.server.port=8000"
- "docker.group=selfhost"
- "docker.group=download"
restart: unless-stopped

View file

@ -20,6 +20,7 @@ services:
- "traefik.http.routers.heimdall.entrypoints=web"
- "traefik.http.services.heimdall.loadbalancer.server.port=80"
- "docker.group=selfhost"
- "docker.group=heimdall"
restart: unless-stopped
networks:

View file

@ -18,6 +18,7 @@ services:
- "traefik.http.routers.portainer.entrypoints=web"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "docker.group=selfhost"
- "docker.group=portainer"
restart: unless-stopped
networks:

View file

@ -22,7 +22,7 @@ services:
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
- "docker.group=selfhost"
- "docker.group=proxy"
extra_hosts:
- host.docker.internal:172.17.0.1
@ -36,7 +36,7 @@ services:
- "traefik.http.routers.whoami.rule=Host(`whoami.${DOMAIN}`)"
- "traefik.http.routers.whoami.entrypoints=web"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "docker.group=selfhost"
- "docker.group=proxy"
restart: unless-stopped

View file

@ -15,7 +15,7 @@ services:
- "traefik.http.routers.hassi.rule=Host(`hassi.${DOMAIN}`)"
- "traefik.http.routers.hassi.entrypoints=web"
- "traefik.http.services.hassi.loadbalancer.server.port=8123"
- "docker.group=selfhost"
- "docker.group=smartHome"
deconz:
image: marthoc/deconz
@ -43,4 +43,4 @@ services:
- "traefik.http.routers.deconz.rule=Host(`deconz.${DOMAIN}`)"
- "traefik.http.routers.deconz.entrypoints=web"
- "traefik.http.services.deconz.loadbalancer.server.port=8080"
- "docker.group=selfhost"
- "docker.group=smartHome"

View file

@ -31,7 +31,7 @@ services:
- "traefik.http.middlewares.torrentHeader.headers.customRequestHeaders.Referer="
- "traefik.http.middlewares.torrentHeader.headers.customRequestHeaders.Origin="
- "traefik.http.routers.torrent.middlewares=torrentHeader"
- "docker.group=selfhost"
- "docker.group=torrent"
restart: unless-stopped
# transmission:
@ -59,7 +59,7 @@ services:
# - "traefik.http.routers.torrent.rule=Host(`torrent.${DOMAIN}`)"
# - "traefik.http.routers.torrent.entrypoints=web"
# - "traefik.http.services.torrent.loadbalancer.server.port=9091"
# - "docker.group=selfhost"
# - "docker.group=torrent"
# restart: unless-stopped