Files
mokuro-docker/compose.yaml

30 lines
632 B
YAML

---
services:
mokuro:
image: mokuro
build:
context: .
dockerfile: Dockerfile
container_name: mokuro
user: 1000:1000
volumes:
- ~/S/japanese/manga:/mokuro/manga
command: ./run.sh "manga/One Piece Color"
runtime: nvidia
restart: no
network_mode: host
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
- compute
- video
environment:
- NVIDIA_DRIVER_CAPABILITIES=all
- NVIDIA_VISIBLE_DEVICES=all