File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ services:
66 ports :
77 # Server port
88 - 80:80/tcp
9+ - 9032:9032/udp
910 image : jacobtread/pocket-relay:latest
1011 volumes :
1112 # Bind the server config to a local config.json file
Original file line number Diff line number Diff line change 11{
2+ "logging" : " debug" ,
23 "port" : 80 ,
3- "reverse_proxy" : true
4+ "reverse_proxy" : true ,
5+ "udp_tunnel" : {
6+ "port" : 9032 ,
7+ "external_port" : 8081
8+ }
49}
Original file line number Diff line number Diff line change 11version : " 3"
22services :
3+ pocket-relay :
4+ restart : unless-stopped
5+ image : jacobtread/pocket-relay:latest
6+ volumes :
7+ # Bind the server config to a local config.json file
8+ - ./config.json:/app/config.json
9+ # Binding the server data to a local data folder
10+ - ./data:/app/data
311 nginx :
412 restart : unless-stopped
513 image : nginx
Original file line number Diff line number Diff line change 77 server_name localhost;
88
99 location / {
10- proxy_pass http ://host.docker. internal :80 ;
10+ proxy_pass http ://pocket-relay :80 ;
1111
1212 # Provide server with real IP address of clients
1313 proxy_set_header X-Real-IP $remote_addr ;
@@ -27,6 +27,6 @@ stream {
2727 # Proxy traffic to the tunnel V2 which is a faster UDP tunnel
2828 server {
2929 listen 8081 udp;
30- proxy_pass host.docker. internal :9032 ;
30+ proxy_pass pocket-relay :9032 ;
3131 }
3232}
Original file line number Diff line number Diff line change 11{
2+ "logging" : " debug" ,
23 "port" : 80 ,
34 "reverse_proxy" : true ,
45 "udp_tunnel" : {
You can’t perform that action at this time.
0 commit comments