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} - 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: - ${LT_HOST}:${LT_PORT}:5000