Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mini-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
mini-router
Commits
311c7d04
Commit
311c7d04
authored
Aug 14, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d3610e62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
4 deletions
+33
-4
Dockerfile
Dockerfile
+5
-4
entrypoint.sh
entrypoint.sh
+4
-0
frpc.ini
frpc.ini
+15
-0
supervisord.conf
supervisord.conf
+9
-0
No files found.
Dockerfile
View file @
311c7d04
FROM
debian:bullseye as frp
FROM
debian:bullseye as frp
ENV
FRP_VERSION=0.37.1
ENV
FRP_VERSION=0.37.1
WORKDIR
/usr/src/app
ADD
https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz ./
ADD
https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz ./
RUN
tar
xf frp_
${
FRP_VERSION
}
_linux_amd64.tar.gz
RUN
tar
xf frp_
${
FRP_VERSION
}
_linux_amd64.tar.gz
RUN
mv
frp_
${
FRP_VERSION
}
_linux_amd64 frp
RUN
mv
frp_
${
FRP_VERSION
}
_linux_amd64 frp
COPY
frpc.ini frp/
# https://github.com/masipcat/wireguard-go-docker/blob/master/Dockerfile
# https://github.com/masipcat/wireguard-go-docker/blob/master/Dockerfile
FROM
golang:1.16-buster as wireguard
FROM
golang:1.16-buster as wireguard
...
@@ -28,14 +28,15 @@ RUN git clone --depth 1 --branch $wg_tools_tag https://git.zx2c4.com/wireguard-t
...
@@ -28,14 +28,15 @@ RUN git clone --depth 1 --branch $wg_tools_tag https://git.zx2c4.com/wireguard-t
FROM
debian:bullseye
FROM
debian:bullseye
RUN
apt update
&&
apt
install
--no-install-recommends
-y
\
RUN
apt update
&&
apt
install
--no-install-recommends
-y
\
supervisor openssh-server python3 iptables iproute2
\
supervisor openssh-server python3 iptables iproute2
babeld
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=frp /
usr/src/app/
frp /opt/frp
COPY
--from=frp /frp /opt/frp
RUN
mkdir
-p
/var/run/sshd
RUN
mkdir
-p
/var/run/sshd
COPY
--from=wireguard /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
COPY
--from=wireguard /usr/bin/wireguard-go /usr/bin/wg* /usr/bin/
COPY
supervisord.conf /etc/supervisord.conf
COPY
supervisord.conf /etc/supervisord.conf
COPY
entrypoint.sh /
EXPOSE
22
EXPOSE
22
CMD
["/usr/bin/supervisord"]
CMD
["/entrypoint.sh"]
\ No newline at end of file
\ No newline at end of file
entrypoint.sh
0 → 100755
View file @
311c7d04
#!/bin/bash
sed
-i
"/^remote_port =/s/= .*/=
${
frpc
}
/"
/opt/frp/frpc.ini
supervisord
\ No newline at end of file
frpc.ini
0 → 100644
View file @
311c7d04
[common]
server_addr
=
121.46.232.12
server_port
=
7001
tcp_mux
=
true
protocol
=
tcp
token
=
hst4jy6uwy53qsehtu46
[frpc_ssh_JJzxdidQ]
privilege_mode
=
true
type
=
tcp
local_ip
=
127.0.0.1
local_port
=
22
remote_port
=
40030
use_encryption
=
true
use_compression
=
true
\ No newline at end of file
supervisord.conf
View file @
311c7d04
[
supervisord
]
[
supervisord
]
nodaemon
=
true
nodaemon
=
true
[
unix_http_server
]
file
=/
tmp
/
supervisor
.
sock
[
supervisorctl
]
serverurl
=
unix
:///
tmp
/
supervisor
.
sock
[
rpcinterface
:
supervisor
]
supervisor
.
rpcinterface_factory
=
supervisor
.
rpcinterface
:
make_main_rpcinterface
[
program
:
sshd
]
[
program
:
sshd
]
command
=/
usr
/
sbin
/
sshd
-
D
command
=/
usr
/
sbin
/
sshd
-
D
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment