whaler-hosts-plugin

0.2.1 • Public • Published

Whaler hosts plugin

This plugin add ability to call app services by domain name [service].[app].whaler.lh

Install

whaler plugins:install whaler-hosts-plugin

NB! After plugin install, you need start at least one service, to enable it.

Get IP

docker inspect whaler_hosts --format '{{.NetworkSettings.Networks.whaler_hosts_nw.IPAddress}}'

Dnsmasq

NB! Dnsmasq step is pure optional, but then you need manually add records to /etc/hosts file.

Install dnsmasq:

sudo apt-get install dnsmasq

Update config file /etc/dnsmasq.conf with following line:

NB! If you have address=/whaler.lh/[IP], remove it.

server=/whaler.lh/[IP]

NB! Don't forget to replace [IP] with whaler_hosts container IP.

License

This software is under the MIT license. See the complete license in:

LICENSE

Readme

Keywords

Package Sidebar

Install

npm i whaler-hosts-plugin

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

7.15 kB

Total Files

4

Last publish

Collaborators

  • cravler