migrate adguardhome to container
This commit is contained in:
parent
4020891021
commit
0af96c20c6
2 changed files with 21 additions and 31 deletions
21
nixos/viridian/containers/adguardhome.nix
Normal file
21
nixos/viridian/containers/adguardhome.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
adguardhome = {
|
||||
autoStart = true;
|
||||
image = "adguard/adguardhome";
|
||||
ports = [
|
||||
"53:53" # Plain DNS
|
||||
"3000:3000" # WEBGUI
|
||||
];
|
||||
volumes = [
|
||||
"/srv/containers/adguardhome/work:/opt/adguardhome/work"
|
||||
"/srv/containers/adguardhome/conf:/opt/adguardhome/conf"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue