Skip to content

Commit

Permalink
docker: update compose file for nvidia opencl support
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushik Dutta authored and Koushik Dutta committed May 2, 2024
1 parent d69ec69 commit fa8d17b
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions install/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ services:
# See volumes section below to use the host daemon.
# - SCRYPTED_DOCKER_AVAHI=true

# Uncomment next 3 lines for Nvidia GPU support.
# NVIDIA (Part 1 of 3)
# - NVIDIA_VISIBLE_DEVICES=all
# - NVIDIA_DRIVER_CAPABILITIES=all

# NVIDIA (Part 2 of 3)
# runtime: nvidia
# Necessary to communicate with host dbus for avahi-daemon.
security_opt:
- apparmor:unconfined

volumes:
# NVIDIA (Part 3 of 3)
# - /etc/OpenCL/vendors/nvidia.icd:/etc/OpenCL/vendors/nvidia.icd

# Scrypted NVR Storage (Part 3 of 3)

# Modify to add the additional volume for Scrypted NVR.
Expand Down Expand Up @@ -98,11 +101,13 @@ services:

# logging is noisy and will unnecessarily wear on flash storage.
# scrypted has per device in memory logging that is preferred.
# enable the log file if enhanced debugging is necessary.
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
driver: "none"
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "10"
labels:
- "com.centurylinklabs.watchtower.scope=scrypted"

Expand Down

0 comments on commit fa8d17b

Please sign in to comment.