mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 15:02:19 +00:00
Initial Docker example
This commit is contained in:
parent
27d662d055
commit
a4e4e3cf4e
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM debian:buster
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
python3-flask python3-ldap uwsgi uwsgi-plugin-python3 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /code
|
||||
COPY . /code/
|
||||
|
||||
EXPOSE 8080
|
||||
CMD /usr/bin/uwsgi --http-socket 0.0.0.0:8080 --master --plugin python3 --module ghostream:app --static-map /static=/code/ghostream/static
|
29
doc/docker-compose.yml
Normal file
29
doc/docker-compose.yml
Normal file
@ -0,0 +1,29 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
# FIXME: adapt URL in conf
|
||||
ovenmediaengine:
|
||||
image: airensoft/ovenmediaengine:0.10.7
|
||||
ports:
|
||||
- 10000-10005:10000-10005/udp
|
||||
volumes:
|
||||
- ./ovenmediaengine/conf/Server.xml:/opt/ovenmediaengine/bin/origin_conf/Server.xml
|
||||
|
||||
# FIXME: relay RTMPS to RTMP, auth RTMP with ghostream and relay HTTPS to ghostream HTTP and ovenmediaengine websocket
|
||||
rtmp_server:
|
||||
image: nginx:1.19.2
|
||||
ports:
|
||||
- 1935:1935
|
||||
- 443:443
|
||||
- 80:80
|
||||
|
||||
# ghostream will serve a HTTP server on 8080
|
||||
ghostream:
|
||||
build: ../
|
||||
environment:
|
||||
- FLASK_CONFIG="production"
|
||||
- LDAP_URI="ldap://127.0.0.1:389"
|
||||
- LDAP_USER_DN="cn=Users,dc=example,dc=com"
|
||||
- SITE_NAME="Ghostream"
|
||||
- SITE_HOSTNAME="localhost"
|
||||
- FAVICON="/favicon.ico"
|
Loading…
Reference in New Issue
Block a user