Unable to configure SSL on dockerized LibreTranslate

Hello,
I’ve configured LibreTranslate 1.5.2 with docker, using this docker-compose.yml file:

version: "3.9"
services:
  libretranslate:
    container_name: LibreTranslate
    image: libretranslate/libretranslate:v1.5.2
    healthcheck:
      test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
    mem_limit: 2g
    ports:
      - 5000:5000
    environment:
      LT_SSL: true

but It does not work.
I also tried to set 443 port but without success.
I have no reverse proxy.

You need a reverse proxy to setup SSL. LT_SSL will instruct waitress to expect a SSL setup, but you still need a reverse proxy (perhaps this should be made clearer in the docs).

1 Like