2024-07-17 16:30:13 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
jellyfin:
|
2024-08-25 18:24:32 +08:00
|
|
|
image: jellyfin/jellyfin:10.9.10
|
2024-07-17 16:30:13 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
network_mode: ${NETWORK_MODE}
|
|
|
|
user: 0:0
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8096
|
|
|
|
volumes:
|
|
|
|
- ${JELLYFIN_ROOT_PATH}/config:/config
|
|
|
|
- ${JELLYFIN_ROOT_PATH}/cache:/cache
|
|
|
|
- ${JELLYFIN_ROOT_PATH}/media:/media
|
|
|
|
- ${JELLYFIN_ROOT_PATH}/config/font:/config/font
|
|
|
|
- ${JELLYFIN_ROOT_PATH}/config/dejavu:/usr/share/fonts/truetype/dejavu
|
|
|
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
|
|
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
|
|
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
|
|
|
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
|
|
|
environment:
|
|
|
|
- ROC_ENABLE_PRE_VEGA=1
|
|
|
|
- HTTP_PROXY=${HTTP_PROXY:-}
|
|
|
|
- HTTPS_PROXY=${HTTP_PROXY:-}
|
|
|
|
- NO_PROXY=localhost,127.0.0.1,::1
|