Put your service definition files in a directory and mount it as a volume to /etc/avahi/services.
Configuration is done through environment variables.
- ALLOW_INTERFACES set allow-interfaces in avahi-daemon.conf
- DENY_INTERFACES set deny-interfaces in avahi-daemon.conf
docker run -d --restart always \
--net=host \
-e ALLOW_INTERFACES=eth0 \
-v $(pwd)/services:/etc/avahi/services \
ydkn/avahi:latestThis repository includes a GitHub Actions workflow that publishes the image to GitHub Container Registry.
- Push to
mainto publish/updateghcr.io/brodybuster/avahi:main - Push a tag like
v1.0.0to publishghcr.io/brodybuster/avahi:v1.0.0 - The default branch also publishes
ghcr.io/brodybuster/avahi:latest
GitHub Actions uses the repository GITHUB_TOKEN, so the workflow only needs repository Actions to be enabled. The workflow requests packages: write so it can push to GHCR.