make configs reads from env file
This commit is contained in:
parent
bbee9243e8
commit
122143529e
2
docker-compose/.env
Normal file
2
docker-compose/.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
KEY=123456
|
||||||
|
SERVER=www.yourserver.com
|
@ -6,4 +6,4 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 1080:1080
|
- 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}"
|
@ -5,4 +5,4 @@ services:
|
|||||||
image: esrrhs/pingtunnel:latest
|
image: esrrhs/pingtunnel:latest
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: host
|
network_mode: host
|
||||||
command: "./pingtunnel -type server -key 123456"
|
command: "./pingtunnel -type server -key ${KEY}"
|
Loading…
Reference in New Issue
Block a user