This plugin adds the ability to call app services by domain name [service].[app].whaler.lh
whaler plugins:install whaler-hosts-pluginNB! After installing the plugin, you need start at least one service, to enable it.
docker inspect whaler_hosts --format '{{.NetworkSettings.Networks.whaler_hosts_nw.IPAddress}}'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.lh
Restart systemd-resolved:
sudo systemctl restart systemd-resolvedUpdate docker daemon config file:
# /etc/docker/daemon.json
{
"dns": ["8.8.8.8"]
}Restart docker:
sudo systemctl restart dockerThis software is under the MIT license. See the complete license in:
LICENSE