Fix dependencies
This commit is contained in:
parent
60832094af
commit
4a59849ae2
|
@ -59,7 +59,8 @@ in {
|
||||||
restart = "always";
|
restart = "always";
|
||||||
ports = [ "${toString cfg.port}:3001" ];
|
ports = [ "${toString cfg.port}:3001" ];
|
||||||
command = [ "start.sh" "immich" ];
|
command = [ "start.sh" "immich" ];
|
||||||
depends_on = [ "redis" "database" ];
|
depends_on =
|
||||||
|
[ "redis" "database" "immich-ml" "immich-microservices" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"${cfg.store-directory}:/usr/src/app/upload"
|
"${cfg.store-directory}:/usr/src/app/upload"
|
||||||
"/etc/localtime:/etc/localtime:ro"
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
@ -72,7 +73,7 @@ in {
|
||||||
image = cfg.images.immich;
|
image = cfg.images.immich;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
command = [ "start.sh" "microservices" ];
|
command = [ "start.sh" "microservices" ];
|
||||||
depends_on = [ "redis" "database" ];
|
depends_on = [ "redis" "database" "immich-ml" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"${cfg.store-directory}:/usr/src/app/upload"
|
"${cfg.store-directory}:/usr/src/app/upload"
|
||||||
"/etc/localtime:/etc/localtime:ro"
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
@ -98,7 +99,6 @@ in {
|
||||||
service = {
|
service = {
|
||||||
image = cfg.images.postgresql;
|
image = cfg.images.postgresql;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
depends_on = [ "redis" "database" ];
|
|
||||||
volumes =
|
volumes =
|
||||||
[ "${cfg.state-directory}/database:/var/lib/postgresql/data" ];
|
[ "${cfg.state-directory}/database:/var/lib/postgresql/data" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue