Actually use the env file..

This commit is contained in:
niten 2024-02-07 15:23:23 -08:00
parent 8fc3f85fa6
commit 92f277f539
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ in {
"${cfg.store-directory}:/usr/src/app/upload" "${cfg.store-directory}:/usr/src/app/upload"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
env_files = [ hostSecrets.immichEnv.target-file ];
}; };
}; };
@ -97,6 +98,7 @@ in {
"${cfg.store-directory}:/usr/src/app/upload" "${cfg.store-directory}:/usr/src/app/upload"
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
]; ];
env_files = [ hostSecrets.immichEnv.target-file ];
}; };
}; };
@ -105,6 +107,7 @@ in {
image = cfg.images.immich-ml; image = cfg.images.immich-ml;
restart = "always"; restart = "always";
volumes = [ "${cfg.state-directory}/model-cache:/cache" ]; volumes = [ "${cfg.state-directory}/model-cache:/cache" ];
env_files = [ hostSecrets.immichEnv.target-file ];
}; };
}; };
@ -120,6 +123,7 @@ in {
restart = "always"; restart = "always";
volumes = volumes =
[ "${cfg.state-directory}/database:/var/lib/postgresql/data" ]; [ "${cfg.state-directory}/database:/var/lib/postgresql/data" ];
env_files = [ hostSecrets.immichEnv.target-file ];
}; };
}; };
}; };