docker-ffmpeg-gpu/docker-compose.yml
2023-05-20 19:44:09 +02:00

24 lines
488 B
YAML

version: '3'
services:
nvidia-ffmpeg:
build: ./
image: nvidia-ffmpeg
container_name: nvidia-ffmpeg
restart: "no"
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
entrypoint:
- /bin/sleep
- infinity
volumes:
- ./folder:/folder
- /usr/lib/x86_64-linux-gnu/nvidia/current:/cuda:ro
network_mode: host