Code Monkey home page Code Monkey logo

docker-icecast-kh's Introduction

Icecast-KH 2.4.0-kh10 in Docker with some interface customization

Icecast-KH index page

Build

git clone https://github.com/ykmn/docker-icecast-kh/
cd docker-icecast-kh
sudo docker build -t ykmn/docker-icecast-kh . --build-args CONTAINER_TIMEZONE=Europe/Moscow

or get prebuilt image.

Run

Run with default password, export port 8000

sudo docker run -p 8000:8000 ykmn/icecast-kh
$BROWSER localhost:8000

Run with custom passwords

sudo docker run -d --name icecast-kh -p 8000:8000 \
     -v /etc/localtime:/etc/localtime:ro \
     -v /var/log/icecast:/var/log/icecast \
     -e ICECAST_SOURCE_PASSWORD=aaaa -e ICECAST_ADMIN_PASSWORD=bbbb \
     -e ICECAST_PASSWORD=cccc -e ICECAST_RELAY_PASSWORD=dddd ykmn/icecast-kh

Run with custom configuration

sudo docker run -d --name icecast-kh -p 56565:8000 \
     -v /etc/localtime:/etc/localtime:ro \
     -v /var/log/icecast:/var/log/icecast \
     -v /usr/local/etc/icecast5.xml:/etc/icecast.xml ykmn/icecast-kh
$BROWSER localhost:56565

You may need to create /var/log/icecast on host for Icecast-Docker logs.

Copy your icecast.xml to docker image: add to Dockerfile

FROM ykmn/icecast-kh
ADD ./icecast.xml /etc/icecast.xml

Docker-compose

icecast:
  image: ykmn/icecast-kh
  volumes:
  - /var/log/icecast:/var/log/icecast
  - /etc/localtime:/etc/localtime:ro
  environment:
  - ICECAST_SOURCE_PASSWORD=aaa
  - ICECAST_ADMIN_PASSWORD=bbb
  - ICECAST_PASSWORD=ccc
  - ICECAST_RELAY_PASSWORD=ddd
  - ICECAST_LOCATION=Earth
  - [email protected]
  - ICECAST_HOSTNAME=stream.doe.com
  ports:
  - 8000:8000
icecast:
  image: ykmn/icecast-kh
  volumes:
  - /usr/local/etc/icecast5.xml:/etc/icecast.xml 
  - /var/log/icecast:/var/log/icecast
  - /etc/localtime:/etc/localtime:ro
  environment:
  - ICECAST_LOCATION=Earth
  - [email protected]
  ports:
  - 56565:8000

License

MIT

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.