fix: Remove privileged mode and seccomp option, update runtime to nvidia

This commit is contained in:
vishalkadam47
2024-10-25 02:32:50 +05:30
parent 96c5176984
commit 5a440d934d

View File

@@ -3,10 +3,8 @@ version: "3.8"
services:
blender:
image: lscr.io/linuxserver/blender:latest
privileged: true
container_name: blender
security_opt:
- seccomp:unconfined #optional
runtime: nvidia
deploy:
resources:
reservations:
@@ -14,10 +12,7 @@ services:
- driver: nvidia
count: all
capabilities:
- compute
- video
- graphics
- utility
- gpu
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
@@ -25,13 +20,8 @@ services:
- PGID=1000
- TZ=Etc/UTC
- SUBFOLDER=/ #optional
volumes:
- blender:/config
ports:
- 3000:3000
- 3001:3001
restart: unless-stopped
shm_size: 1gb
volumes:
blender: null