custom image

This commit is contained in:
soraefir
2026-05-09 10:09:51 +02:00
parent fcb97828f4
commit fba3a24f16
2 changed files with 6 additions and 3 deletions

View File

@@ -1,13 +1,16 @@
{ config, lib, serverCfg }:
let
builder =
{ image, secret ? null
{ image, imageStream ? null
, secret ? null
, subdomain ? null, ip ? null, port ? 0
, extraEnv ? { }, extraLabels ? { }, extraOptions ? [ ]
, overrides ? { }
}:
let base = {
inherit image;
image = if imageStream != null then "${imageStream.imageName}:${imageStream.imageTag}"
else image;
imageStream = imageStream;
environmentFiles = if secret!=null then [ config.sops.secrets."${lib.toUpper secret}".path ] else [];
environment = {} // extraEnv;

View File

@@ -26,7 +26,7 @@ in {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
# image = "ghcr.io/traefik/traefik:${version}";
imageStream = image;
image = image;
ip = containerCfg.ip;
port = 8080;
secret = name;