Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Using traefik to serve libretime over HTTPS

Guillaume edited this page Feb 7, 2021 · 2 revisions

this libretime image can be served over HTTPS pretty simply using traefik 1.7 (reverse proxy).

To be able to do it, you'll need the following docker-compose file.

docker-compose.yml:

version: "3.6"

# make sure to have a .env file in the same directory

services:
  libretime:
    image: odclive/libretime-docker:latest
    container_name: libretime
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=${TZ}
    volumes: ...
    restart: always
    labels:
      - "traefik.enable=true"
      - "traefik.frontend.rule=Host:radio.example.com"
      - "traefik.docker.network=web"
    networks:
      - web
volumes:
  libretime_postgres:
networks:
  web:
    external: true

Once you have it setup, you'll have 2 steps to follow:

  1. you can setup your docker+traefik 1.7 following this tutorial
  2. "radio.example.com" must be a DNS record at your registar provider that point to your fixed IP server (I think that adding ddclient package, we can use a dynamic IP)

Thanks to @maxlinux2000 for the issue providing the docker-compose file (https://github.com/kessibi/libretime-docker/issues/15).

Clone this wiki locally