feat(compose): add streamer-minecraft-tg service
This commit is contained in:
parent
0ff5ecd9d0
commit
ed76fbd379
2 changed files with 50 additions and 0 deletions
23
config/streamer-minecraft-tg.env.example
Normal file
23
config/streamer-minecraft-tg.env.example
Normal file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue