mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 07:42:10 +01:00 
			
		
		
		
	SRT port must be exposed as UDP port
This commit is contained in:
		@@ -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
 | 
					COPY --from=build_base /code/out/ghostream /app/ghostream
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
# 9710 for SRT, 8080 for Web, 2112 for monitoring and 10000-10005 (UDP) for WebRTC
 | 
					# 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"]
 | 
					CMD ["/app/ghostream"]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,7 +32,7 @@ You can also launch the Docker image using,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
docker build . -t ghostream
 | 
					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
 | 
					## Streaming
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ services:
 | 
				
			|||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - 80:80
 | 
					      - 80:80
 | 
				
			||||||
      - 443:443
 | 
					      - 443:443
 | 
				
			||||||
      - 9710:9710
 | 
					      - 9710:9710/udp
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - /var/run/docker.sock:/var/run/docker.sock
 | 
					      - /var/run/docker.sock:/var/run/docker.sock
 | 
				
			||||||
      - ./traefik_data:/data
 | 
					      - ./traefik_data:/data
 | 
				
			||||||
@@ -49,8 +49,8 @@ services:
 | 
				
			|||||||
      - "traefik.http.routers.ghostream-metrics.service=ghostream-metrics"
 | 
					      - "traefik.http.routers.ghostream-metrics.service=ghostream-metrics"
 | 
				
			||||||
      - "traefik.http.services.ghostream-metrics.loadbalancer.server.port=2112"
 | 
					      - "traefik.http.services.ghostream-metrics.loadbalancer.server.port=2112"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - "traefik.tcp.routers.ghostream-srt.rule=HostSNI(`stream.example.com`)"
 | 
					      - "traefik.udp.routers.ghostream-srt.rule=HostSNI(`stream.example.com`)"
 | 
				
			||||||
      - "traefik.tcp.routers.ghostream-srt.entrypoints=srtsecure"
 | 
					      - "traefik.udp.routers.ghostream-srt.entrypoints=srtsecure"
 | 
				
			||||||
      - "traefik.tcp.routers.ghostream-srt.tls.certresolver=mytlschallenge"
 | 
					      - "traefik.udp.routers.ghostream-srt.tls.certresolver=mytlschallenge"
 | 
				
			||||||
      - "traefik.tcp.routers.ghostream-srt.service=ghostream-srt"
 | 
					      - "traefik.udp.routers.ghostream-srt.service=ghostream-srt"
 | 
				
			||||||
      - "traefik.tcp.services.ghostream-srt.loadbalancer.server.port=9710"
 | 
					      - "traefik.udp.services.ghostream-srt.loadbalancer.server.port=9710"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user