1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2025-11-23 22:04:43 +02:00
Files
LibreTranslate/docker-compose.cuda.yml

35 lines
966 B
YAML
Raw Normal View History

2022-06-20 16:20:07 -06:00
services:
2025-07-29 21:37:02 +02:00
libretranslate:
container_name: libretranslate
image: libretranslate/libretranslate:latest-cuda
2022-06-20 16:20:07 -06:00
ports:
2023-01-12 14:23:29 +01:00
- "5000:5000"
2025-07-29 21:37:02 +02:00
restart: unless-stopped
command: --disable-web-ui
environment:
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
- LT_API_KEYS=True
- LT_REQ_LIMIT=120
- LT_UPDATE_MODELS=True
- LT_DEBUG=True
- PUID=root
volumes:
- ${libretranslate_data_folder}/db:/app/db
- ${libretranslate_data_folder}/data:/root/.local:rw
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
2025-08-20 20:18:47 -04:00
## Uncomment this for logging in docker compose logs
# tty: true
2025-07-29 21:37:02 +02:00
# './venv/bin/python is not implemented in the cuda docker yet
# healthcheck:
# test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
# interval: 10s
# timeout: 4s
# retries: 4
# start_period: 5s