Now it should work, I had faulty learning

This commit is contained in:
Siina Mashek 2023-01-04 18:14:37 +02:00
parent bd64037366
commit f20025531a
2 changed files with 14 additions and 12 deletions

View File

@ -1,5 +1,4 @@
BASE_DATA_DIR=
LT_API_KEYS_DB_PATH=/app/db/api_keys.db
LT_API_KEYS_DB_PATH=/app/db
LT_HOST=127.0.0.1
LT_PORT=5000
LT_REQ_LIMIT=10

View File

@ -5,15 +5,18 @@ services:
container_name: libretranslate
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}
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}
volumes:
- /var/lib/docker/volumes/libretranslate/api_keys:/app/db/api_keys.db
- libretranslate:/app/db
- libretranslate:/home/libretranslate/.local
ports:
- ${LT_HOST}:${LT_PORT}:5000
- ${LT_HOST}:${LT_PORT}:${LT_PORT}
volumes:
libretranslate: