mirror of
https://github.com/horgh/videostreamer.git
synced 2025-09-26 20:41:31 +08:00

Copy the .env.example into a .env file, update with your variable run `docker-compose up` https://github.com/horgh/videostreamer/issues/22
31 lines
671 B
YAML
31 lines
671 B
YAML
version: "2.3"
|
|
|
|
services:
|
|
rtsp2mp4:
|
|
container_name: videostreamer
|
|
image: popszer/rtsp2mp4:v0.0.1
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=${HOST}
|
|
- PORT=${PORT}
|
|
- FCGI=${FCGI}
|
|
- VERBOSE=${VERBOSE}
|
|
- FORMAT=${FORMAT}
|
|
- SOURCE_RTSP=${SOURCE_RTSP}
|
|
ports:
|
|
- "${PORT}:${PORT}"
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
/videostreamer -host ${HOST} \
|
|
-port ${PORT} \
|
|
-input ${SOURCE_RTSP} \
|
|
-verbose ${VERBOSE} \
|
|
-fcgi ${FCGI} \
|
|
-format ${FORMAT}
|
|
|
|
|