2023-01-01 10:08:23 +02:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
libretranslate:
|
|
|
|
image: libretranslate/libretranslate:latest
|
|
|
|
container_name: libretranslate
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- LT_API_KEYS_DB_PATH=${LT_API_KEYS_DB_PATH}
|
2023-01-01 10:48:52 +02:00
|
|
|
- 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 16:32:11 +02:00
|
|
|
- libretranslate_api_keys:/app/db/api_keys.db
|
2023-01-01 10:55:33 +02:00
|
|
|
ports:
|
2023-01-01 11:43:59 +02:00
|
|
|
- ${LT_HOST}:${LT_PORT}:5000
|