use a separate container network for woodpecker, to be able to control the dns settings

This commit is contained in:
Cyryl Płotnicki 2022-12-03 15:41:34 +00:00
parent 741bfb3d43
commit e7280b6eec
1 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ in {
WOODPECKER_GITEA_URL = "https://git.cyplo.dev";
};
ports = [ "${toString httpPort}:${toString httpPort}" ];
extraOptions = [ "--network=woodpecker" ];
};
virtualisation.oci-containers.containers.woodpecker-agent = {
@ -49,8 +50,9 @@ in {
"woodpeckerci/woodpecker-agent@sha256:9a98e25ca6fcf7c437ad355cfce53a696c55b9864399a4d456429a20bfb44545";
environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ];
environment = {
WOODPECKER_SERVER = "woodpecker-server:${toString agentPort}";
WOODPECKER_SERVER = "${serverContainerName}:${toString agentPort}";
WOODPECKER_MAX_PROCS = "2";
};
extraOptions = [ "--network=woodpecker" ];
};
}