An open API service indexing awesome lists of open source software.

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)

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
```