Created
December 6, 2025 20:49
-
-
Save joshgontijo/19f332dc3fc3240f65009e5cb100f7a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: translate | |
| services: | |
| # this container is terrible to get it running, lots of permissions issues | |
| # process uses PUID and PGID 1032, either change the owner of the folder after the container started: | |
| # sudo chown -R 1032:1032 ${HDD2}/libretranslate | |
| # or simply cowboy the thing and 'chmod -R 777 ${HDD2}/libretranslate' | |
| libretranslate: | |
| container_name: libretranslate | |
| image: libretranslate/libretranslate | |
| restart: unless-stopped | |
| environment: | |
| - LT_API_KEYS=true | |
| - LT_API_KEYS_DB_PATH=/app/db/api_keys.db | |
| ## Uncomment these vars and libretranslate_models volume to optimize loading time. | |
| - LT_UPDATE_MODELS=true | |
| - LT_LOAD_ONLY=en,fr | |
| ports: | |
| - "5000:5000" | |
| tty: true | |
| healthcheck: | |
| test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] | |
| ## Uncomment above command and define your args if necessary | |
| command: --threads 10 | |
| volumes: | |
| - ~/libretranslate/data:/home/libretranslate/.local/share | |
| - ~/libretranslate/cache:/home/libretranslate/.local/cache | |
| - ~/libretranslate/models:/home/libretranslate/.local:rw | |
| - ~/libretranslate/local:/.local | |
| - ~/libretranslate/api_keys:/app/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment