update container configurations
This commit is contained in:
parent
2cdee3871f
commit
b8acc1570a
9 changed files with 65 additions and 9 deletions
24
nixos/lavender/containers/traefik.nix
Normal file
24
nixos/lavender/containers/traefik.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# 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"
|
||||
];
|
||||
ports = [
|
||||
"80:80"
|
||||
"443:443"
|
||||
"8080:8080"
|
||||
];
|
||||
environment = {
|
||||
CF_API_EMAIL_FILE = "/secrets/cf-api-email";
|
||||
CF_API_KEY_FILE = "/secrets/cf-api-key";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue