enable host networking + docker.sock

This commit is contained in:
♥ Minnie ♥ 2023-07-29 08:30:44 +08:00
parent 8d4689df27
commit 2b9c3b7b4c
3 changed files with 4 additions and 0 deletions

View file

@ -8,7 +8,9 @@
volumes = [
"/srv/containers/homepage:/app/config"
"/srv/data:/srv/data:ro"
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
];
ports = [ "3000:3000" ];
extraOptions = ["--network=host"];
};
}

View file

@ -10,5 +10,6 @@
"/srv/data/media:/data/media:ro"
];
ports = [ "32400:32400" ];
extraOptions = ["--network=host"];
};
}

View file

@ -20,5 +20,6 @@
CF_API_EMAIL_FILE = "/secrets/cf-api-email";
CF_API_KEY_FILE = "/secrets/cf-api-key";
};
extraOptions = ["--network=host"];
};
}