From 4a59849ae25a69da2c5266f36888494934798cf0 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 7 Feb 2024 14:56:46 -0800 Subject: [PATCH] Fix dependencies --- immich-container.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/immich-container.nix b/immich-container.nix index 56f8747..9f77e9c 100644 --- a/immich-container.nix +++ b/immich-container.nix @@ -59,7 +59,8 @@ in { restart = "always"; ports = [ "${toString cfg.port}:3001" ]; command = [ "start.sh" "immich" ]; - depends_on = [ "redis" "database" ]; + depends_on = + [ "redis" "database" "immich-ml" "immich-microservices" ]; volumes = [ "${cfg.store-directory}:/usr/src/app/upload" "/etc/localtime:/etc/localtime:ro" @@ -72,7 +73,7 @@ in { image = cfg.images.immich; restart = "always"; command = [ "start.sh" "microservices" ]; - depends_on = [ "redis" "database" ]; + depends_on = [ "redis" "database" "immich-ml" ]; volumes = [ "${cfg.store-directory}:/usr/src/app/upload" "/etc/localtime:/etc/localtime:ro" @@ -98,7 +99,6 @@ in { service = { image = cfg.images.postgresql; restart = "always"; - depends_on = [ "redis" "database" ]; volumes = [ "${cfg.state-directory}/database:/var/lib/postgresql/data" ]; };