make configs reads from env file

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

2
docker-compose/.env Normal file
View File

@ -0,0 +1,2 @@
KEY=123456
SERVER=www.yourserver.com

View File

@ -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}"

View File

@ -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}"