mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add frp-arm
This commit is contained in:
parent
beeccceb41
commit
1f72480526
@ -5,7 +5,7 @@ youtube:
|
||||
- -c
|
||||
- ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTMP_URI -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -c:a aac -f flv $$RTMP_URI
|
||||
environment:
|
||||
- RTMP_URI=rtsp://10.50.254.197/live
|
||||
- RTSP_URI=rtsp://10.50.254.197/live
|
||||
- RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
|
||||
restart: always
|
||||
|
||||
|
20
frp/arm/Dockerfile
Normal file
20
frp/arm/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# Dockerfile for frp-arm
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV FRP_VERSION 0.16.0
|
||||
ENV FRP_URL https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_arm.tar.gz
|
||||
|
||||
WORKDIR /opt/frp
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add --no-cache curl tar \
|
||||
&& curl -sSL $FRP_URL | tar xz --strip 1 \
|
||||
&& apk del curl tar
|
||||
|
||||
EXPOSE 7000/tcp 7000/udp 7500/tcp
|
||||
|
||||
CMD ["./frps", "-c", "frps.ini"]
|
9
frp/arm/data/frps.ini
Normal file
9
frp/arm/data/frps.ini
Normal file
@ -0,0 +1,9 @@
|
||||
[common]
|
||||
bind_addr = 0.0.0.0
|
||||
bind_port = 7000
|
||||
kcp_bind_port = 7000
|
||||
dashboard_port = 7500
|
||||
dashboard_user = admin
|
||||
dashboard_pwd = admin
|
||||
privilege_token = 12345678
|
||||
privilege_allow_ports = 2222,20000-20100
|
6
frp/arm/docker-compose.yml
Normal file
6
frp/arm/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
frps:
|
||||
image: easypi/frp-arm
|
||||
volumes:
|
||||
- ./data/frps.ini:/opt/frp/frps.ini
|
||||
net: host
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user