Adding envvars to libretranslate

This commit is contained in:
Siina Mashek 2023-01-01 10:48:52 +02:00
parent 8a783495a9
commit 82c21b218f
2 changed files with 16 additions and 4 deletions

View File

@ -1,2 +1,9 @@
LT_API_KEYS_DB_PATH=
BASE_DATA_DIR=
LT_API_KEYS_DB_PATH=/app/db/api_keys.db
LT_HOST=127.0.0.1
LT_PORT=5000
LT_REQ_LIMIT=10
LT_BATCH_LIMIT=10
LT_FRONTEND_LANGUAGE_SOURCE=en
LT_FRONTEND_LANGUAGE_TARGET=fi
LT_API_KEYS=True

View File

@ -6,7 +6,12 @@ services:
restart: unless-stopped
environment:
- LT_API_KEYS_DB_PATH=${LT_API_KEYS_DB_PATH}
- 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}
volumes:
- ${BASE_DATA_DIR}/libretranslate/api_keys:/app/db/api_keys.db
ports:
- 5000:5000