update docker file with default config file

pull/4876/head
Chemmy 2025-07-10 09:50:27 +08:00
parent f9065a6a78
commit 8b72f20923
4 changed files with 24 additions and 2 deletions

11
conf/frpc_docker.toml Normal file
View File

@ -0,0 +1,11 @@
serverAddr = "127.0.0.1"
serverPort = 7000
includes = ["/etc/frp/conf.d/*.toml"]
[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

3
conf/frps_docker.toml Normal file
View File

@ -0,0 +1,3 @@
bindPort = 7000
includes = ["/etc/frp/conf.d/*.toml"]

View File

@ -11,4 +11,8 @@ RUN apk add --no-cache tzdata
COPY --from=building /building/bin/frpc /usr/bin/frpc
ENTRYPOINT ["/usr/bin/frpc"]
RUN mkdir -p /etc/frp/conf.d/
COPY conf/frpc_docker.toml /etc/frp/frpc.toml
ENTRYPOINT ["/usr/bin/frpc", "-c", "/etc/frp/frpc.toml"]

View File

@ -11,4 +11,8 @@ RUN apk add --no-cache tzdata
COPY --from=building /building/bin/frps /usr/bin/frps
ENTRYPOINT ["/usr/bin/frps"]
RUN mkdir -p /etc/frp/conf.d/
COPY conf/frps_docker.toml /etc/frp/frps.toml
ENTRYPOINT ["/usr/bin/frps", "-c", "/etc/frp/frps.toml"]