aboutsummaryrefslogtreecommitdiffstats
path: root/names/compose-libretranslate.yml
blob: 80ed9c673fcc85b85fd6249aea2b33a830e8bb7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# LibreTranslate for post translation (coinos v3). Reached only by the
# names registrar over the docker network (POST /translate there); no port
# on the host, no web UI. Models live in the lt-data volume.
services:
  libretranslate:
    image: libretranslate/libretranslate:v1.9.6
    container_name: libretranslate
    environment:
      LT_LOAD_ONLY: en,es,fr,de,pt,id,tr,vi,ru,ar,ur,hi,bn,ja,ko,zh,it,nl,pl,uk,fa,he,th,sv,cs,el,ro,hu,fi,da,nb,ca
      LT_DISABLE_WEB_UI: "true"
      LT_CHAR_LIMIT: "5000"
      LT_THREADS: "4"
      LT_UPDATE_MODELS: "true"
    volumes:
      - lt-data:/home/libretranslate/.local
    networks: [net]
    deploy:
      resources:
        limits:
          memory: 8g
    restart: unless-stopped
volumes:
  lt-data:
networks:
  net:
    external: true