Files
videostreamer/docker-compose.yaml
fpaupier ca60c46b4c add: support for docker-compose
Copy the .env.example into a .env file, update with your variable run `docker-compose up`

https://github.com/horgh/videostreamer/issues/22
2022-02-21 19:56:25 +01:00

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}