mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix(deployment): matplotlib in rootless deployments (#30328)
This commit is contained in:
parent
8cb5bf92c2
commit
1094b69946
3 changed files with 3 additions and 4 deletions
|
|
@ -51,8 +51,6 @@ services:
|
||||||
- NET_RAW
|
- NET_RAW
|
||||||
volumes:
|
volumes:
|
||||||
- ./ml-model-cache:/cache
|
- ./ml-model-cache:/cache
|
||||||
- ./ml-dotcache:/.cache
|
|
||||||
- ./ml-config:/.config
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
||||||
|
|
@ -413,8 +413,6 @@ You can change the user in the container by setting the `user` argument in `dock
|
||||||
|
|
||||||
You may need to add mount points or docker volumes for the following internal container paths:
|
You may need to add mount points or docker volumes for the following internal container paths:
|
||||||
|
|
||||||
- `immich-machine-learning:/.config`
|
|
||||||
- `immich-machine-learning:/.cache`
|
|
||||||
- `redis:/data`
|
- `redis:/data`
|
||||||
|
|
||||||
The non-root user/group needs read/write access to the volume mounts, including `UPLOAD_LOCATION` and `/cache` for machine-learning.
|
The non-root user/group needs read/write access to the volume mounts, including `UPLOAD_LOCATION` and `/cache` for machine-learning.
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,9 @@ ENV IMMICH_SOURCE_REF=${BUILD_SOURCE_REF}
|
||||||
ENV IMMICH_SOURCE_COMMIT=${BUILD_SOURCE_COMMIT}
|
ENV IMMICH_SOURCE_COMMIT=${BUILD_SOURCE_COMMIT}
|
||||||
ENV IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/${BUILD_SOURCE_COMMIT}
|
ENV IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/${BUILD_SOURCE_COMMIT}
|
||||||
|
|
||||||
|
# store matplotlib config in /cache subfolder to enable rootless deployment with a single volume
|
||||||
|
ENV MPLCONFIGDIR=/cache/matplotlib
|
||||||
|
|
||||||
ENTRYPOINT ["tini", "--"]
|
ENTRYPOINT ["tini", "--"]
|
||||||
CMD ["python", "-m", "immich_ml"]
|
CMD ["python", "-m", "immich_ml"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue