make configs reads from env file

This commit is contained in:
sajad sadrayieh committed 2021-02-23 16:39:19 +03:30
1 parent bbee9243e8
commit 122143529e
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
KEY=123456
SERVER=www.yourserver.com
+1 -1
View File
@@ -6,4 +6,4 @@ services:
restart: always
ports:
- 1080:1080
command: "./pingtunnel -type client -l 0.0.0.0:1080 -s www.yourserver.com -sock5 1 -key 123456"
command: "./pingtunnel -type client -l 0.0.0.0:1080 -s ${SERVER} -sock5 1 -key ${KEY}"
+1 -1
View File
@@ -5,4 +5,4 @@ services:
image: esrrhs/pingtunnel:latest
restart: always
network_mode: host
command: "./pingtunnel -type server -key 123456"
command: "./pingtunnel -type server -key ${KEY}"