🐳 Dashy Docker Sync - Realtime sync of your docker containers to your Dashy Dashboard #1850
jeppestaerk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dashy Docker Sync
Dynamically update your Dashy dashboard configuration based on Docker container lifecycle events. This tool listens to Docker events and automatically adds or removes services from a specified section in your Dashy conf.yml.
What it does
Quick start
I’ve packaged this as a Docker image so it can run alongside Dashy. Here’s a minimal docker-compose.yml example:
Add this to any container you want surfaced in Dashy:
This would update the Dashy config file with:
When you deploy a new container or change those values, the sync tool will automatically regenerate the section in conf.yml and Dashy will pick up the changes without any manual editing
🔧 More env vars & advanced options
DASHY_CONFIG_PATH
conf.yml
file./config/dashy-config.yml
DASHY_LOG_LEVEL
DEBUG
,INFO
,WARNING
,ERROR
).INFO
DASHY_RESET_ON_START
true
, the specified Docker section in Dashy will be cleared of items on application startup.true
DASHY_DOCKER_SECTION_NAME
Docker Containers
DASHY_EXPOSED_BY_DEFAULT
true
, all running containers will be considered for Dashy unless explicitly excluded by other logic. Iffalse
, only containers with a matchingDASHY_DOCKER_LABEL_REGEX
label will be considered.false
DASHY_DOCKER_LABEL_REGEX
DASHY_EXPOSED_BY_DEFAULT
isfalse
, a container must have at least one label key matching this regex to be included.DASHY_DOCKER_IGNORE_LABEL_REGEX
"true"
(case-insensitive), the container will be skipped, regardless of other settings. If the value is"false"
or anything else, this specific ignore label is ignored.^dashy\.ignore$
DASHY_DOCKER_PORT_LABEL_REGEX
^dashy\.port$
DASHY_DOCKER_URL_HOST
{host}
placeholder of theDASHY_DOCKER_URL_TEMPLATE
.localhost
DASHY_DOCKER_URL_TEMPLATE
{host}
,{port}
,{name}
(container name).http://{host}:{port}
DASHY_DOCKER_TITLE_TEMPLATE
{name}
(container name).{name}
DASHY_DOCKER_ICON_TEMPLATE
{name}
. Can point to local Dashy icons (e.g.,png/{name}.png
) or external URLs.hl-{name}
DOCKER_SOCKET
unix://var/run/docker.sock
Advance start
🐳 Full docker compose exsample
See more info here: https://github.com/jeppestaerk/dashy-docker-sync/blob/main/README.md
Beta Was this translation helpful? Give feedback.
All reactions