From f214278b443936149666d5761bd93571435ef37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 14 Apr 2024 19:31:12 +0100 Subject: [PATCH] restart keycloak when postgresql restarts --- new-infra/containers/keycloak/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/new-infra/containers/keycloak/default.nix b/new-infra/containers/keycloak/default.nix index ba42196b..3f3175c1 100644 --- a/new-infra/containers/keycloak/default.nix +++ b/new-infra/containers/keycloak/default.nix @@ -109,6 +109,9 @@ in { systemd.services."container@keycloak.service".requires = [ "container@postgresql.service" ]; + systemd.services."container@postgresql.service".partOf = [ + "container@keycloak.service" + ]; networking.bridges.keycloak.interfaces = [ "ve-postgresql"