diff --git a/config/streamer-minecraft-tg.env.example b/config/streamer-minecraft-tg.env.example new file mode 100644 index 0000000..f1f6ef6 --- /dev/null +++ b/config/streamer-minecraft-tg.env.example @@ -0,0 +1,23 @@ +# streamer for the minecraft station, target = telegram rtmp ingest. +# copy to streamer-minecraft-tg.env on summer, fill in RTMP_URL. + +STATION=minecraft +RTMP_URL=rtmps://dc4-1.rtmp.t.me/s/REPLACE_WITH_KEY +LIQUIDSOAP_PCM=tcp://liquidsoap:9100 +NOW_PLAYING_DIR=/now-playing +LIBRARY_DIR=/library + +STYLE=denpa +TZ=Asia/Tokyo + +VIDEO_BITRATE=4500k +AUDIO_BITRATE=160k +FRAMERATE=30 +RESOLUTION=1920x1080 + +STATION_TUNE_IN_URL=denpa.femboy.page + +ICECAST_STATUS_URL=http://icecast:8000/status-json.xsl + +LOG_LEVEL=info +HEALTH_PORT=12010 diff --git a/docker-compose.yml b/docker-compose.yml index 55cf2b2..656b13d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -68,3 +68,30 @@ services: timeout: 5s retries: 3 start_period: 15s + + streamer-minecraft-tg: + build: ./streamer + image: denpa-radio-streamer:latest + restart: always + env_file: config/streamer-minecraft-tg.env + depends_on: + liquidsoap: + condition: service_healthy + volumes: + - type: bind + source: /mnt/trashbox/denpa-radio/library + target: /library + read_only: true + - type: bind + source: ./data/now-playing + target: /now-playing + read_only: true + shm_size: '1gb' + ports: + - '172.17.0.1:12010:12010' + healthcheck: + test: ['CMD', 'wget', '-q', '-O', '-', 'http://127.0.0.1:12010/health'] + interval: 30s + timeout: 5s + retries: 3 + start_period: 60s