Sign inSign up

grinvichzero/icecast2

By grinvichzero

Updated almost 2 years ago

Icecast server based on Ubuntu 24.10

Image
Networking
Web servers
0

284

grinvichzero/icecast2 repository overview

Image of Icecast 2.4.4 based on Ubuntu 24.10.

Docker Compose:

version: '3'
services:
  icecast2:
    image: grinvichzero/icecast2:latest
    container_name: icecast2-container
    ports:
      - "8000:8000"
    volumes:
      - ./icecast.xml:/etc/icecast2/icecast.xml
    restart: always

icecast.xml:

<icecast>

    <location>London</location>
    <admin>admin</admin>

    <hostname>yourdomain.com</hostname>

    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>5</header-timeout>
        <source-timeout>5</source-timeout>

        <burst-on-connect>0</burst-on-connect>

        <burst-size>65535</burst-size>
    </limits>

    <authentication>

        <source-password>password</source-password>

        <relay-password>password</relay-password>

        <admin-user>admin</admin-user>
        <admin-password>password</admin-password>
    </authentication>

    <listen-socket>
        <port>8000</port>
    </listen-socket>

    <http-headers>
        <header name="Access-Control-Allow-Origin" value="*" />
    </http-headers>

    <fileserve>1</fileserve>

    <paths>
        <logdir>./log</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" destination="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <loglevel>3</loglevel> 
        <logsize>10000</logsize>
    </logging>
</icecast>

Dockerfile:

FROM ubuntu:24.10

RUN apt-get update && apt-get install -y \
    icecast2 \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m -g icecast icecast && \
    mkdir -p /etc/icecast2/log && \
    touch /etc/icecast2/log/error.log /etc/icecast2/log/access.log && \
    chown -R icecast:icecast /etc/icecast2

EXPOSE 8000

WORKDIR /etc/icecast2

USER icecast

CMD ["icecast2", "-n", "-c", "/etc/icecast2/icecast.xml"]

Tag summary

Content type

Image

Digest

sha256:49d761067

Size

56.7 MB

Last updated

almost 2 years ago

docker pull grinvichzero/icecast2