How to Install LibreTranslate on Your Synology NAS

How to Install LibreTranslate on Your Synology NAS

LibreTranslate is a free and Open Source Machine Translation API, entirely self-hosted. Unlike other APIs, it doesn’t rely on proprietary providers such as Google or Azure to perform translations. Instead, its translation engine is powered by the open source Argos Translate library. In this step by step guide I will show you how to install LibreTranslate on your Synology NAS using Docker & Portainer.

💡Note: This guide works perfectly with the latest LibreTranslate v1.5.5 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 4

In the Name field type in libretranslate. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: "3.9"
services:
  libretranslate:
    container_name: LibreTranslate
    image: libretranslate/libretranslate
    healthcheck:
      test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
    mem_limit: 4g
    security_opt:
      - no-new-privileges:true
    ports:
      - 7821:5000
    environment:
      LT_LOAD_ONLY: de,en,zh,it,es,fr,pl,tr,ru,fi,nl,id,cs,el,hu,sk
    restart: on-failure:5

LibreTranslate Synology NAS Set up 1

  • STEP 5

Scroll down the page until you see a button called Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

LibreTranslate Synology NAS Set up 2

  • STEP 6

If everything goes right, you will see this message at the top right of your screen: “Success Stack successfully deployed“.

LibreTranslate Synology NAS Set up 3

  • STEP 7

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 8

Please wait approximately 5-10 minutes for the installation to be completed, otherwise you will get a blank page if you try to connect to soon. The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:7821 Type in a text and choose the language in which you would like to translate it. Follow the instructions in the image below.

LibreTranslate Synology NAS Set up 4

Enjoy LibreTranslate!

Note: If you want to run the LibreTranslate container over HTTPS, check How to Run Docker Containers Over HTTPS. In order to make LibreTranslate work over https, it’s also mandatory to set up WebSocket as well as additional environment variables in the LibreTranslate container as in the example below.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the LibreTranslate container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Saturday / February 24th, 2024 at 6:08 AM