-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
frpc:
image: nykma/frp:0.58.0
restart: always
volumes:
- ./config:/frp/config
- ./log:/frp/log
extra_hosts:
# To visit host's port in a container,
# you should fill in the correct IP of your docker host.
- "dockerhost:192.168.0.64"
# ports:
# - "127.0.0.1:7400:7400" # admin_port
frps:
image: nykma/frp:0.58.0
restart: always
volumes:
- ./config:/frp/config
- ./log:/frp/log
ports:
- "7000:7000" # bind_port
- "7000:7000/udp" # kcp_bind_port
- "7500:7500" # dashboard_port
# - "80:80" # vhost_http_port
# - "443:443" # vhost_https_port
# # WARNING: container up/down will be VERY SLOW (even failed)
# # if too much ports opened here!
- "20000-20020:2000-2020"
entrypoint:
- '/frp/frps'
- '-c'
- '/frp/frps.toml'