🔧 Copied self hosted docker apps

This commit is contained in:
tomit4 2025-08-29 03:38:56 -07:00
parent 36943e27da
commit abc55d8ed5
209 changed files with 58596 additions and 0 deletions

View file

@ -0,0 +1,34 @@
services:
libretranslate:
container_name: libretranslate
image: libretranslate/libretranslate:latest-cuda
ports:
- "5000:5000"
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]
## Uncomment this for logging in docker compose logs
# tty: true
# './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