mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: Remove privileged mode and seccomp option, update runtime to nvidia
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user