2023-05-21 17:41:24 +08:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# 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";
|
|
|
|
};
|
2023-07-29 08:30:44 +08:00
|
|
|
extraOptions = ["--network=host"];
|
2023-05-21 17:41:24 +08:00
|
|
|
};
|
|
|
|
}
|