docker-ffmpeg-gpu/docker-compose.yml

24 lines
488 B
YAML
Raw Normal View History

2023-05-20 17:44:09 +00:00
version: '3'
2022-03-14 22:12:32 +00:00
services:
nvidia-ffmpeg:
build: ./
image: nvidia-ffmpeg
container_name: nvidia-ffmpeg
restart: "no"
2023-05-20 17:44:09 +00:00
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
2022-03-14 22:12:32 +00:00
entrypoint:
- /bin/sleep
- infinity
volumes:
2022-03-26 05:57:42 +00:00
- ./folder:/folder
2023-05-20 17:44:09 +00:00
- /usr/lib/x86_64-linux-gnu/nvidia/current:/cuda:ro
network_mode: host