30 lines
672 B
YAML
30 lines
672 B
YAML
---
|
|
services:
|
|
mokuro:
|
|
image: gitea.suda.codes/sudacode/mokuro-docker:latest
|
|
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
|