mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 10:22:19 +00:00
SRT port must be exposed as UDP port
This commit is contained in:
parent
82969360a4
commit
903d56cd08
@ -15,5 +15,5 @@ RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libs
|
||||
COPY --from=build_base /code/out/ghostream /app/ghostream
|
||||
WORKDIR /app
|
||||
# 9710 for SRT, 8080 for Web, 2112 for monitoring and 10000-10005 (UDP) for WebRTC
|
||||
EXPOSE 9710 8080 2112 10000-10005/udp
|
||||
EXPOSE 9710/udp 8080 2112 10000-10005/udp
|
||||
CMD ["/app/ghostream"]
|
||||
|
@ -32,7 +32,7 @@ You can also launch the Docker image using,
|
||||
|
||||
```
|
||||
docker build . -t ghostream
|
||||
docker run -it --rm -p 2112:2112 -p 9710:9710 -p 8080:8080 -p 10000-10005:10000-10005/udp ghostream
|
||||
docker run -it --rm -p 2112:2112 -p 9710:9710/udp -p 8080:8080 -p 10000-10005:10000-10005/udp ghostream
|
||||
```
|
||||
|
||||
## Streaming
|
||||
|
@ -9,7 +9,7 @@ services:
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 9710:9710
|
||||
- 9710:9710/udp
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./traefik_data:/data
|
||||
@ -49,8 +49,8 @@ services:
|
||||
- "traefik.http.routers.ghostream-metrics.service=ghostream-metrics"
|
||||
- "traefik.http.services.ghostream-metrics.loadbalancer.server.port=2112"
|
||||
|
||||
- "traefik.tcp.routers.ghostream-srt.rule=HostSNI(`stream.example.com`)"
|
||||
- "traefik.tcp.routers.ghostream-srt.entrypoints=srtsecure"
|
||||
- "traefik.tcp.routers.ghostream-srt.tls.certresolver=mytlschallenge"
|
||||
- "traefik.tcp.routers.ghostream-srt.service=ghostream-srt"
|
||||
- "traefik.tcp.services.ghostream-srt.loadbalancer.server.port=9710"
|
||||
- "traefik.udp.routers.ghostream-srt.rule=HostSNI(`stream.example.com`)"
|
||||
- "traefik.udp.routers.ghostream-srt.entrypoints=srtsecure"
|
||||
- "traefik.udp.routers.ghostream-srt.tls.certresolver=mytlschallenge"
|
||||
- "traefik.udp.routers.ghostream-srt.service=ghostream-srt"
|
||||
- "traefik.udp.services.ghostream-srt.loadbalancer.server.port=9710"
|
||||
|
Loading…
Reference in New Issue
Block a user