docker_mdns

Version, currently master branch1 version
  • master branchlatestAug 13, 2020

github.com/chrisholmes/docker_mdns

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  docker_mdns:
    github: chrisholmes/docker_mdns
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.33.0
License
MIT
Author
your-name-here <your-email-here>
Target
  • docker_mdns from src/docker_mdns.cr

Dependencies

Runtime Dependencies

  • dbus*github: oprypin/crystal-dbus, branch: master

README

docker_mdns

Automatic docker mdns announcer designed to work with traefik.

Installation

  • shards build
  • cp bin/docker_mdns /usr/local/bin
  • cp docker-mdns@.service /etc/systemd/system
  • systemctl daemon-reload
  • systemctl enable docker-mdns@{your_interface}
  • systemctl start docker-mdns@{your_interface}

Usage

Label your local containers with:

traefik.http.routers.<service_name>.rule = Host(`chosen_hostname.local`)
traefik.http.services.<service_name>.loadbalancer.server.port = <port>

Development

Warning: This is a home solution / shit code.

Contributing

  1. Fork it (https://gitlab.com/viraptor/docker_mdns/-/forks/new)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors