I managed to get a test instance up and running locally on my NAS with a very simple docker-compose.yml using libretranslate/libretranslate:latest to avoid building my own image.
Here it is:
version: "2.4" services: libretranslate: image: libretranslate/libretranslate:latest container_name: libretranslate hostname: libretranslate restart: "no" ports: - 7500:5000 environment: LT_DEBUG: true LT_FRONTEND_LANGUAGE_SOURCE: de LT_FRONTEND_LANGUAGE_TARGET: en LT_LOAD_ONLY: 'de,en' LT_THREADS: 4 LT_SUGGESTIONS: true networks: - libretranslate cpus: 2 mem_limit: 4G networks: libretranslate: external: true name: libretranslate
here are a few questions related to this:
- can I map a volume to a certain path to avoid downloading language files with every restart?
- why ist the image at around 3.7 GB, this seems highly unusual and at a first glance with:
docker exec -ti libretranslate bash [email protected]:/app$ ls -al
I am wondering whether all of that is really necessary as it looks like the complete git repo is inside there (only at a glance of course).