Fix dependencies

This commit is contained in:
niten 2024-02-07 14:56:46 -08:00
parent 60832094af
commit 4a59849ae2
1 changed files with 3 additions and 3 deletions

View File

@ -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" ];
};