Giter VIP home page Giter VIP logo

Comments (4)

hardillb avatar hardillb commented on June 19, 2024

No, but without knowing a lot more about how you are running things really can't say anything more

from nginx-proxy-avahi-helper.

crashfrog avatar crashfrog commented on June 19, 2024

Sure, that's fair. First I just wanted a basic sanity check about how the container was meant to function, so thank you for getting back to me, I really appreciate it. Let me describe my setup a bit more:

  1. This is a Mac M1 Mini, using Docker Desktop (v. 20.10.22, build 3a2c30b) and a docker-compose file to wrangle a couple of services. They all have web UI's on different ports.

  2. Here's the relevant sections of my docker-compose:

version: "2.1"
services:
  avahi-helper:
    image: hardillb/nginx-proxy-avahi-helper:latest
    container_name: avahi-helper
    network_mode: host
    volumes:
      - /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
      - /var/run/docker.sock:/tmp/docker.sock
  resilio-sync:
    image: lscr.io/linuxserver/resilio-sync:latest
    container_name: resilio-sync
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=ICT
      - VIRTUAL_HOST=sync.feste.local
      - VIRTUAL_PORT=8888
    volumes:
      - $PWD/.sync:/config
      - $HOME/Downloads:/downloads
      - /Volumes/BKUP/sync:/sync
    ports:
      - 8888:8888
      - 55554:55555
    restart: unless-stopped
    depends_on:
        avahi-helper:
          condition: service_started

I'm not a Docker expert, so that's based on documentation from linuxserver.io and my best guess from the nginx-proxy-avahi-helper examples. Whether I start the container using docker-compose or directly at the command line, it immediately terminates. Inspecting the container logs gives the above output (immediate SIGTERM to dockergen and cname.)

Thank you for the time you've already spent and please accept my gratitude for any assistance you feel you can provide. I appreciate that this is probably a side project for you; if there's an alternative way to get CNAMEs to work in Avahi/mDNS in Docker you'd like to direct me to I'd be happy to pursue that, instead.

from nginx-proxy-avahi-helper.

hardillb avatar hardillb commented on June 19, 2024

The host OS will need to be Linux, it will not work with macOS

from nginx-proxy-avahi-helper.

hardillb avatar hardillb commented on June 19, 2024

Just to be clear here:

  • There is no avahi running on MacOS (They provide their own mDNS implementation)
  • There is no dbus (how the container talks to avahi on the host machine) so /run/dbus/system_bus_socket doesn't exist

from nginx-proxy-avahi-helper.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.