2024-07-17 16:30:13 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
name: immich-machine-learning
|
|
|
|
|
|
|
|
services:
|
|
|
|
immich-machine-learning:
|
2024-11-22 14:19:06 +08:00
|
|
|
image: ghcr.io/immich-app/immich-machine-learning:v1.121.0
|
2024-07-17 16:30:13 +08:00
|
|
|
container_name: immich-machine-learning-${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
devices:
|
|
|
|
- /dev/dri:/dev/dri
|
2024-08-22 13:50:37 +08:00
|
|
|
# - /dev/nvidia0:/dev/nvidia0
|
|
|
|
# - /dev/nvidiactl:/dev/nvidiactl
|
|
|
|
# - /dev/nvidia-modeset:/dev/nvidia-modeset
|
|
|
|
# - /dev/nvidia-nvswitchctl:/dev/nvidia-nvswitchctl
|
|
|
|
# - /dev/nvidia-uvm:/dev/nvidia-uvm
|
|
|
|
# - /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
|
|
|
|
# - /dev/video11:/dev/video11
|
2024-07-17 16:30:13 +08:00
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:3003
|
|
|
|
env_file:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
2024-07-17 16:30:13 +08:00
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
volumes:
|
|
|
|
- ${IMMICH_ROOT_PATH}/data/cache:/cache
|
2024-10-16 10:43:47 +08:00
|
|
|
healthcheck:
|
|
|
|
disable: false
|