Move gitlab configuration to a networked-docker-container
This commit is contained in:
parent
7266dd3bfa
commit
5b5f922354
|
@ -12,6 +12,7 @@
|
||||||
# and set inside the docker-containers set, instead of setting the
|
# and set inside the docker-containers set, instead of setting the
|
||||||
# docker-containers set here.
|
# docker-containers set here.
|
||||||
./services/nginx.nix
|
./services/nginx.nix
|
||||||
|
./services/gitlab.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -63,12 +64,5 @@
|
||||||
autoPrune.enable = true;
|
autoPrune.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
docker-containers = {
|
|
||||||
## Actual service definitions
|
|
||||||
gitlab = import ./services/gitlab.nix;
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "19.09";
|
system.stateVersion = "19.09";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
networked-docker-containers = {
|
||||||
|
gitlab = {
|
||||||
image = "gitlab/gitlab-ce:latest";
|
image = "gitlab/gitlab-ce:latest";
|
||||||
ports = [
|
ports = [
|
||||||
"3022:22"
|
"3022:22"
|
||||||
|
@ -15,7 +17,9 @@
|
||||||
LETSENCRYPT_HOST = "gitlab.tlater.net";
|
LETSENCRYPT_HOST = "gitlab.tlater.net";
|
||||||
GITLAB_OMNIBUS_CONFIG = builtins.replaceStrings [ "\n" ] [ "" ] (builtins.readFile ./configs/gitlab.rb);
|
GITLAB_OMNIBUS_CONFIG = builtins.replaceStrings [ "\n" ] [ "" ] (builtins.readFile ./configs/gitlab.rb);
|
||||||
};
|
};
|
||||||
extraDockerOptions = [
|
networks = [
|
||||||
"--network=webproxy"
|
"webproxy"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue