fix(compose): Remove unused volume mappings for machine learning (#770)

This commit is contained in:
Matthew Momjian
2026-09-03 15:55:37 +02:00
committed by GitHub
parent 6a5dc00a0a
commit c8d29d4f7c
2 changed files with 2 additions and 8 deletions
@@ -166,11 +166,7 @@ describe('buildCompose', () => {
expect(spec.services[name].security_opt).toEqual(['no-new-privileges:true']);
expect(spec.services[name].cap_drop).toEqual(['NET_RAW']);
}
expect(spec.services['immich-machine-learning'].volumes).toEqual([
'./ml-model-cache:/cache',
'./ml-dotcache:/.cache',
'./ml-config:/.config',
]);
expect(spec.services['immich-machine-learning'].volumes).toEqual(['./ml-model-cache:/cache']);
expect(spec.services.redis.volumes).toEqual(['./redis:/data']);
expect(spec.volumes).toBeUndefined();
});
@@ -226,8 +222,6 @@ describe('buildCompose', () => {
expect(spec.services['immich-machine-learning'].volumes).toEqual([
'./ml-model-cache:/cache',
'./ml-dotcache:/.cache',
'./ml-config:/.config',
'/dev/bus/usb:/dev/bus/usb',
]);
expect(spec.services.redis.volumes).toEqual(['./redis:/data']);
@@ -12,7 +12,7 @@ export const rootlessHardening = ({ uid, gid }: ImmichConfig['rootless']): Compo
});
export const ROOTLESS_VOLUMES = new Map<string, string[]>([
['immich-machine-learning', ['./ml-model-cache:/cache', './ml-dotcache:/.cache', './ml-config:/.config']],
['immich-machine-learning', ['./ml-model-cache:/cache']],
['redis', ['./redis:/data']],
]);