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