setup new host + migrate containers to it
This commit is contained in:
parent
804423319f
commit
0949fbc9c7
12 changed files with 8 additions and 15 deletions
15
nixos/viridian/containers/homepage/default.nix
Normal file
15
nixos/viridian/containers/homepage/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Homepage
|
||||
virtualisation.oci-containers.containers."homepage" = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/benphelps/homepage:latest";
|
||||
volumes = [
|
||||
"/srv/containers/homepage:/app/config"
|
||||
"/srv/data:/srv/data:ro"
|
||||
"/var/run/docker.sock:/var/run/docker.sock" # pass local proxy
|
||||
];
|
||||
extraOptions = ["--network=host"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue