1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-24 10:06:43 +02:00
LibreTranslate/docker-compose.yml

24 lines
755 B
YAML
Raw Normal View History

version: "3"
services:
libretranslate:
container_name: libretranslate
2023-01-12 15:23:29 +02:00
build:
context: .
2023-01-13 17:24:56 +02:00
dockerfile: docker/cuda.Dockerfile
restart: unless-stopped
ports:
2023-01-12 15:23:29 +02:00
- "5000:5000"
healthcheck:
2023-01-16 19:16:30 +02:00
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
## Uncomment above command and define your args if necessary
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
## Uncomment this section and the `volumes` section if you want to backup your API keys
# environment:
# - LT_API_KEYS_DB_PATH=/app/db/api_keys.db # Same result as `db/api_keys.db` or `./db/api_keys.db`
# volumes:
# - libretranslate_api_keys:/app/db/api_keys.db
# volumes:
2023-01-12 15:23:29 +02:00
# libretranslate_api_keys: