Skip to content

whaler/whaler-hosts-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Whaler hosts plugin

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

Install

whaler plugins:install whaler-hosts-plugin

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

Get IP

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

Configure systemd-resolved to use custom DNS nameserver

NB! Don't forget to replace <IP> with whaler_hosts container IP.

Create systemd-resolved config file:

# /etc/systemd/resolved.conf.d/whaler-hosts.conf
[Resolve]
DNS=<IP>
Domains=~whaler.lh

Restart systemd-resolved:

sudo systemctl restart systemd-resolved

Configure docker daemon to use custom DNS nameserver

Update docker daemon config file:

# /etc/docker/daemon.json
{
    "dns": ["8.8.8.8"]
}

Restart docker:

sudo systemctl restart docker

License

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

LICENSE

About

Whaler hosts plugin

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors