test custom img
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user