test custom img

This commit is contained in:
soraefir
2026-05-09 10:04:47 +02:00
parent e04382742f
commit fcb97828f4

View File

@@ -2,6 +2,19 @@
let
version = "3";
serverCfg = config.syscfg.server;
image = pkgs.dockerTools.buildLayeredImage {
name = "traefik";
tag = "latest";
contents = [ pkgs.traefik ];
config = {
Cmd = [ "traefik" ];
WorkingDir = "/";
};
extraCommands = ''
touch acme.json
chmod 600 acme.json
'';
};
in {
paths = [{
path="${serverCfg.configPath}/traefik";
@@ -12,7 +25,8 @@ in {
containers = {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
image = "ghcr.io/traefik/traefik:${version}";
# image = "ghcr.io/traefik/traefik:${version}";
imageStream = image;
ip = containerCfg.ip;
port = 8080;
secret = name;