whaler-hosts-plugin
v0.3.0
Published
Whaler hosts plugin
Readme
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-pluginNB! 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>withwhaler_hostscontainer IP.
Create systemd-resolved config file:
# /etc/systemd/resolved.conf.d/whaler-hosts.conf
[Resolve]
DNS=<IP>
Domains=~whaler.lhRestart systemd-resolved:
sudo systemctl restart systemd-resolvedConfigure 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 dockerLicense
This software is under the MIT license. See the complete license in:
LICENSE