mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 13:16:33 +00:00
18 lines
371 B
YAML
18 lines
371 B
YAML
version: "3"
|
|
|
|
services:
|
|
libretranslate-cuda:
|
|
container_name: libretranslate-cuda
|
|
build:
|
|
context: .
|
|
dockerfile: docker/cuda.Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|