GithubHelp home page GithubHelp logo

pltnk / docker-icecast2 Goto Github PK

View Code? Open in Web Editor NEW
8.0 0.0 5.0 41 KB

Dockerfile for running icecast2 in a container.

Home Page: https://hub.docker.com/r/pltnk/icecast2

License: MIT License

Dockerfile 100.00%
icecast2 online-radio docker docker-image music streaming streaming-audio streaming-video dockerfile

docker-icecast2's Introduction

docker-icecast2

Build Status Docker Pulls Docker Image Size License

Simple Dockerfile for running icecast2 in a container.
Just mount your icecast.xml file and you are good to go!

Works well with containerized Liquidsoap: pltnk/docker-liquidsoap

Installation

  • Pull the image from one of public Docker registries
    • Docker Hub docker pull pltnk/icecast2
    • GitHub Packages docker pull ghcr.io/pltnk/icecast2
    • Quay.io docker pull quay.io/pltnk/icecast2
  • Build the image yourself
    • docker build -t pltnk/icecast2 github.com/pltnk/docker-icecast2

Configuration

  • Mount your icecast.xml to /etc/icecast2/icecast.xml
  • Publish necessary ports

docker run

docker run --name icecast2 -d --restart=always \
--publish 8000:8000 \
--volume /path/to/your/icecast.xml:/etc/icecast2/icecast.xml \
pltnk/icecast2

docker-compose.yml

icecast2:
  image: pltnk/icecast2
  container_name: icecast2
  restart: always
  ports:
    - 8000:8000
  volumes:
    - /path/to/your/icecast.xml:/etc/icecast2/icecast.xml

docker-icecast2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-icecast2's Issues

Admin UI not loading

Using the default config provided with Icecast2, the http://ipaddress:port/admin/stats.xml fails to load. The only output from the docker container when starting is:

Starting icecast2 ... done Attaching to icecast2 icecast2 | * Starting streaming media server icecast2 icecast2 | ...done. icecast2 | [2021-09-13 12:46:25] WARN CONFIG/_parse_root Warning, <hostname> not configured, using default value "localhost". This will cause problems, e.g. with YP directory listings. icecast2 | [2021-09-13 12:46:25] WARN CONFIG/_parse_root Warning, <location> not configured, using default value "Earth". icecast2 | [2021-09-13 12:46:25] WARN CONFIG/_parse_root Warning, <admin> contact not configured, using default value "icemaster@localhost". icecast2 | [2021-09-13 12:46:25] WARN fserve/fserve_recheck_mime_types Cannot open mime types file /etc/mime.types

The default settings should still allow the admin UI to load.

Images for different platforms

Thanks for you work! I'm using this container for my personal projects.

Would be nice to modify GH Actions workflow to compile image for different platforms, like ARM64.

All the best.

Connection failed: could not write data to host: Connection refused in write()

Hi!

First of all, thanks for docker-icecast2 and docker-liquidsoap ๐Ÿ‘๐Ÿป

I tried to run icecast2 and liquidsoap in docker, but faced with following error:

2024/05/21 15:12:29 [My_radio:3] Connecting mount autodj for [email protected]...
2024/05/21 15:12:29 [My_radio:2] Connection failed: could not write data to host: Connection refused in write()

May be you have some ideas why it happened... Probably some kind of missconfiguration ๐Ÿ˜ญ

I've created a repo where you can reproduce the issue: https://github.com/lightness/radio

Please help ๐Ÿ™๐Ÿป

failed to load external entity "/etc/icecast2/icecast.xml"

Hi

Trying to start the image, I always get:

icecast2    | I/O error : Permission denied
icecast2    | I/O error : Permission denied
icecast2    | I/O warning : failed to load external entity "/etc/icecast2/icecast.xml"

Apparently the icecast user, which is the one /etc/init.d/icecast2 is using, has no permission to read /etc/icecast2/icecast.xml because its permissions are not allowing anyone else than root to read it.

-rw-r-----. 1 root root 9181 Oct 15  2020 icecast.xml

If I mount /etc/init.d/icecast2 using a modified file starting icecast as root:

[..]
  start)
	log_daemon_msg "Starting $DESC" "$NAME"
	start-stop-daemon --start --exec $DAEMON -- -b -c $CONFIGFILE
	log_end_msg $?
	;;
[..]

it works, but this is obviously far from ideal.

It also works if I remove the mounting of the config xml file, just a test of course since this is not allowing to configure it. In this case, the xml file has the icecast group set

-rw-r-----. 1 root icecast 9181 Oct 15  2020 icecast.xml

Thanks

Icecast2 via SSL

Hi, i am trying to run icecast via HTTPS. Activated the 8443 port but i get the following error:

connection/get_ssl_certificate No SSL capability on any configured ports

Can anyone help on how can i activate this? I am using it on a Synology DS218+ with DSM 7

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.