refactor(luna): delay gitlab-docker start in systemd
This commit is contained in:
parent
34c78f67b0
commit
d6c7a522ef
@ -7,6 +7,16 @@ in
|
||||
environment.persistence.save.directories = [
|
||||
gitlab_home
|
||||
];
|
||||
|
||||
systemd.timers.delay-gitlab-start = {
|
||||
after = [ "docker.service" "docker.socket" "network-online.target" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnActiveSec = "30sec";
|
||||
Unit = "docker-gitlab.service";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.gitlab = {
|
||||
image = "gitlab/gitlab-ee:latest";
|
||||
autoStart = true;
|
||||
@ -26,6 +36,8 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
systemd.services.docker-gitlab.after = [ "delay-gitlab.timer" ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
2222
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user