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
20
nixos/viridian/containers/traefik/default.nix
Normal file
20
nixos/viridian/containers/traefik/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Traefik
|
||||
virtualisation.oci-containers.containers."traefik" = {
|
||||
autoStart = true;
|
||||
image = "traefik:v2.10";
|
||||
volumes = [
|
||||
"/srv/containers/traefik/traefik.yaml:/etc/traefik/traefik.yaml"
|
||||
"/srv/containers/traefik/config:/config"
|
||||
"/srv/containers/traefik/letsencrypt:/letsencrypt"
|
||||
"/srv/containers/traefik/secrets:/secrets"
|
||||
];
|
||||
environment = {
|
||||
CF_API_EMAIL_FILE = "/secrets/cf-api-email";
|
||||
CF_API_KEY_FILE = "/secrets/cf-api-key";
|
||||
};
|
||||
extraOptions = ["--network=host"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue