2023-01-01 10:08:23 +02:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
libretranslate:
|
|
|
|
image: libretranslate/libretranslate:latest
|
|
|
|
container_name: libretranslate
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2023-01-04 18:14:37 +02:00
|
|
|
LT_API_KEYS_DB_PATH: /app/db/api_keys.db
|
|
|
|
LT_HOST: ${LT_HOST}
|
|
|
|
LT_PORT: ${LT_PORT}
|
|
|
|
LT_REQ_LIMIT: ${LT_REQ_LIMIT}
|
|
|
|
LT_BATCH_LIMIT: ${LT_BATCH_LIMIT}
|
|
|
|
LT_FRONTEND_LANGUAGE_SOURCE: ${LT_FRONTEND_LANGUAGE_SOURCE}
|
|
|
|
LT_FRONTEND_LANGUAGE_TARGET: ${LT_FRONTEND_LANGUAGE_TARGET}
|
|
|
|
LT_API_KEYS: ${LT_API_KEYS}
|
2023-01-01 10:08:23 +02:00
|
|
|
volumes:
|
2023-01-04 18:14:37 +02:00
|
|
|
- libretranslate:/app/db
|
|
|
|
- libretranslate:/home/libretranslate/.local
|
2023-01-01 10:55:33 +02:00
|
|
|
ports:
|
2023-01-04 18:14:37 +02:00
|
|
|
- ${LT_HOST}:${LT_PORT}:${LT_PORT}
|
|
|
|
volumes:
|
|
|
|
libretranslate:
|