mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-12-30 16:50:28 -05:00
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
services:
|
|
libretranslate:
|
|
container_name: libretranslate
|
|
image: libretranslate/libretranslate:latest
|
|
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=1032
|
|
# - PGID=1000
|
|
volumes:
|
|
- ${libretranslate_data_folder}/db:/app/db
|
|
- ${libretranslate_data_folder}/data:/home/libretranslate/.local:rw
|
|
healthcheck:
|
|
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
|
interval: 10s
|
|
timeout: 4s
|
|
retries: 4
|
|
start_period: 5s
|
|
|
|
#### Uncomment Arguments as you see fit. You can find all the different Arguments here: https://hub.docker.com/r/libretranslate/libretranslate#arguments
|
|
#### The docker compose file above is taken from a working environment.
|
|
|
|
#### Please note; you need to create an .env file for the libretranslate_data_folder that exists in the same folder as this docker compose file, somthing like:
|
|
#### libretranslate_data_folder=/path/to/your/docker-compose/folder
|
|
|
|
### You may also need to do 'sudo chown -R 1032:1000 /path/to/your/docker-compose/folder/db /path/to/your/docker-compose/folder/data for permissions to be correct.
|
|
|
|
|