From 8a783495a9ab92bce3422c53e2b01a4dc596835c Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sun, 1 Jan 2023 10:08:23 +0200 Subject: [PATCH] Adding libretranslate --- libretranslate/.env-example | 2 ++ libretranslate/docker-compose.yml | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 libretranslate/.env-example create mode 100644 libretranslate/docker-compose.yml diff --git a/libretranslate/.env-example b/libretranslate/.env-example new file mode 100644 index 0000000..24cd4a4 --- /dev/null +++ b/libretranslate/.env-example @@ -0,0 +1,2 @@ +LT_API_KEYS_DB_PATH= + diff --git a/libretranslate/docker-compose.yml b/libretranslate/docker-compose.yml new file mode 100644 index 0000000..1549ed8 --- /dev/null +++ b/libretranslate/docker-compose.yml @@ -0,0 +1,12 @@ +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} + volumes: + - ${BASE_DATA_DIR}/libretranslate/api_keys:/app/db/api_keys.db + ports: + - 5000:5000