Revert "docker: use the system dns for app containers"

This reverts commit 92bce26e22.
This commit is contained in:
Girish Ramakrishnan
2024-09-10 19:37:16 +02:00
parent 732c944e98
commit 63457d2de4
3 changed files with 5 additions and 2 deletions

View File

@@ -373,6 +373,10 @@ async function createSubcontainer(app, name, cmd, options) {
if (isAppContainer) {
containerOptions.Hostname = app.id;
containerOptions.HostConfig.NetworkMode = 'cloudron'; // user defined bridge network
// use unbound for app DNS resolution. this is a workaround for the requirement that OIDC server name has to resolve to
// public IP somehow skipping any /etc/hosts entries
containerOptions.HostConfig.Dns = ['172.18.0.1'];
containerOptions.HostConfig.DnsSearch = ['.'];
containerOptions.NetworkingConfig = {
EndpointsConfig: {