GithubHelp home page GithubHelp logo

gaffafix / libretime-docker-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kessibi/libretime-docker

0.0 0.0 0.0 91 KB

One way to get libretime to work within a Docker container

Dockerfile 0.73% Shell 0.97% Python 98.30%

libretime-docker-1's Introduction

libretime-docker (based on libretime 3.0.0-alpha9)Docker Pulls Docker Cloud Build Status

One way to get libretime to work within a docker container.

This project is only here to simplify the installation of libretime in a single docker container.

installation

Simply run docker pull odclive/libretime-docker:latest to download the image.

To run a standalone none persisting container (for testing purposes) you can use docker run -p 80:80 -p 8000:8000 -p 8001:8001 --name=libretime odclive/libretime-docker:latest.

To run a persisting container, it is strongly recommended you use a docker-compose.yml file coupled with a .env file (you can find an example for both of these in the project directory https://github.com/kessibi/libretime-docker).

Once set up, run docker-compose up. Visiting http://localhost / your server ip / the domain you're using will now render the basic libretime page. Follow the instructions for installation. At some point, libretime will tell you to run sudo service commands, simply run:

docker exec libretime sh /libre_start.sh and it's done.

An example install is shown here: https://github.com/kessibi/libretime-docker/wiki/Sample-installation

You are done with the installation, running docker-compose down and up again will simply pop you back to your installation (it may needed 15-30 seconds to restart). Enjoy your radio.

HTTPS

It is possible to serve this image via HTTPS using different tools, one option is to use traefik and docker-compose as described in the wiki page

disclaimer

This installation is not secure, the logins and passwords provided are the default ones. It is recommended to change them (icecast, libretime, postgres,..). This work is still in progress.

work of others

The systemctl.py script (and the related operations in the Dockerfile) was not at all developed by me but rather found in the repository https://github.com/gdraheim/docker-systemctl-images

systemctl is needed for the installation script (icecast2, apache2, postgres, ...).

about the image

This Docker image is based on the ubuntu:18.04 base image, runs with postgres 10, php 7 and python 2.7 (libretime has not fully transitionned to python 3 yet).

The version of libretime used is release 3.0.0-alpha.9

having troubles with the image

Feel free to create an issue with your detailed problem, make sure to provide enough information to understand and recreate the problem.

updating stream configurations

Feel free to modify stream configs, just know you will have to run docker exec libretime sh /libre_start.sh afterwards to restart all services. Otherwise, liquidsoap just doesn't start up again. If you find a clever way to tackle this issue, don't hesitate to bring it forward.

upgrade of the image

If you downloaded the image early on (before version 3.0.0-alpha9, you might face these problems:

  • When updating the image, it is possible you had an image based on ubuntu 16 (cat /etc/os-release in the Docker container),if it is the case you'll have to make sure your postgresql cluster gets updated from 9.5 to 10 (assuming you use volumes to store data).
  • Again, if your image is based on ubuntu 16, it is most probable that you can't upload songs. To fix the issue, please run this command inside the container: chown -R www-data:www-data /srv/airtime/stor. Thanks to @miasmaejuices for pointing that out.

libretime-docker-1's People

Contributors

kessibi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.