https://github.com/ensody/avahi
Avahi Docker image (auto-updated)
https://github.com/ensody/avahi
auto-updated avahi bonjour docker docker-image mdns podman zeroconf
Last synced: 3 months ago
JSON representation
Avahi Docker image (auto-updated)
- Host: GitHub
- URL: https://github.com/ensody/avahi
- Owner: ensody
- License: apache-2.0
- Created: 2023-11-12T21:49:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T09:11:04.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T01:34:18.786Z (over 1 year ago)
- Topics: auto-updated, avahi, bonjour, docker, docker-image, mdns, podman, zeroconf
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Avahi Docker image
This is a simple Avahi Docker image.
The CI automatically checks for updates (e.g. security fixes) several times per day and publishes a new image only when necessary. So, this image could be used with podman-auto-update or Watchtower.
## Defaults
There's a [default avahi-daemon.conf](https://github.com/ensody/avahi/blob/main/avahi-daemon.conf).
## Volumes
Usually you can just add one or more service definitions to `/etc/avahi/services`.
For more customization you can add your own `/etc/avahi/avahi-daemon.conf` or override the whole `/etc/avahi` folder.
## Example
This will add a Samba service for auto-discovery on Linux and macOS, including Time Machine support.
```sh
AVAHI_ROOT=/var/data/samba-avahi
mkdir -p "$AVAHI_ROOT/services"
cat > "$AVAHI_ROOT/smb.service" <
%h
_adisk._tcp
sys=waMa=0,adVF=0x100
dk0=adVN=TimeMachine,adVF=0x82
_smb._tcp
445
EOF
docker run --restart always -d --name samba-avahi --net=host -v "$AVAHI_ROOT/services/:/etc/avahi/services/" ghcr.io/ensody/avahi:latest
```