Skip to main content
Version: Next


This guide walk you though the steps required to install LibreTime on your system.


If you are coming from Airtime, please follow the Airtime migration guide.

You can install LibreTime using the one of the following methods:

Minimum system requirements​


Make sure that you have configured a firewall and it's not blocking connection to the desired ports.

LibreTime requires the following default ports to be open:

  • 80 for the web interface,
  • 8000 for the Icecast streams,
  • 8001 and 8002 for the live stream input endpoint.

Using the installer​

The installer is shipped in the released tarballs or directly in the project repository.

We recommend installing on one of the following distribution releases:

Before installing​

Before installing LibreTime, you need to make sure you operating system is properly configured.

Operating system time configuration​

Check your operating system time configuration using the following command:

               Local time: Fri 2022-08-05 12:43:39 CEST
Universal time: Fri 2022-08-05 10:43:39 UTC
RTC time: Fri 2022-08-05 10:43:40
Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

Make sure that your time zone is properly configured, if not you can set it using the timedatectl set-timezone command.

If the NTP service is inactive, you should consider enabling it using the timedatectl set-ntp command.


You can either download the latest released tarball or clone the repository.

Download the latest released tarball from Github.

Or directly from the command-line:


And extract the tarball:

tar -xvf libretime-3.0.2.tar.gz && cd libretime

Run the installer​

Install LibreTime with the recommended options, be sure to replace PUBLIC_URL with the public url of your installation, for example or

sudo ./install PUBLIC_URL

When upgrading be sure to run the installer using the same arguments you used during the initial install.


To update the LibreTime nginx configuration file, for example to change the --listen-port, make sure to add the --update-nginx flag to allow overwriting the existing configuration file.

If you need to change some configuration, the install script can be configured using flags or environment variables. Changing the listening port of LibreTime or whether you want to install some dependency by yourself, you could run the following:

# Install LibreTime on your system with the following tweaks:
# - don't install the liquidsoap package (remember to install liquidsoap yourself)
# - set the listen port to 8080
# - don't run the PostgreSQL setup (remember to setup PostgreSQL yourself)
sudo \
./install \
--listen-port 8080 \
--no-setup-postgresqlΒ \

You can persist the install configuration in a .env file next to the install script. For example, the above command could be persisted using the .env file below, and you should be able to run the install script without arguments:


The install script will use randomly generated passwords to create the PostgreSQL user, RabbitMQ user and to update the default Icecast passwords. Those passwords will be saved to the configuration files.

Feel free to run ./install --help to get more details.

Using hardware audio output​

If you plan to output analog audio directly to a mixing console or transmitter, the user running LibreTime needs to be added to the audio user group using the command below:

sudo adduser libretime audio


Once the installation is completed, edit the configuration file at /etc/libretime/config.yml to fill required information and to match your needs.

Next, run the following commands to setup the database:

sudo -u libretime libretime-api migrate

Finally, start the services, and check that they're running properly using the following commands:

sudo systemctl start

sudo systemctl --all --plain | grep libretime

Next, continue by configuring your installation.

Using docker-compose​


Pick the version you want to install:

echo LIBRETIME_VERSION="3.0.2" > .env

Download the docker-compose files from the repository:

source .env

wget "$LIBRETIME_VERSION/docker-compose.yml"
wget "$LIBRETIME_VERSION/docker/nginx.conf"
wget "$LIBRETIME_VERSION/docker/config.yml"


Once the files are downloaded, generate a set of random passwords for the different docker services used by LibreTime:

echo "# Postgres
POSTGRES_PASSWORD=$(openssl rand -hex 16)

# RabbitMQ
RABBITMQ_DEFAULT_PASS=$(openssl rand -hex 16)

# Icecast
ICECAST_SOURCE_PASSWORD=$(openssl rand -hex 16)
ICECAST_ADMIN_PASSWORD=$(openssl rand -hex 16)
ICECAST_RELAY_PASSWORD=$(openssl rand -hex 16)" >> .env
cat .env

You can find more details in the docker-compose.yml file or on the external services docker specific documentation:

Next, edit the configuration file at ./config.yml to set the previously generated passwords, fill required information, and to match your needs.


The docker/config.yml configuration file you previously downloaded already contains specific values required by the container setup, you shouldn't change them:

host: "postgres"
host: "rabbitmq"
liquidsoap_host: "liquidsoap"
server_listen_address: ""
host: "icecast"

Next, run the following commands to setup the database:

docker-compose run --rm api libretime-api migrate

Finally, start the services, and check that they're running properly using the following commands:

docker-compose up -d

docker-compose ps
docker-compose logs -f

Next, continue by configuring your installation.


Once the setup is completed, log in the interface (with the default user admin and password admin), and make sure to edit the project settings (go to Settings > General) to match your needs. Important settings are:

  • First day of the week


Once completed, it's recommended to install a reverse proxy to setup SSL termination and secure your installation.