diff --git a/docker-compose/.env b/docker-compose/.env new file mode 100644 index 0000000..87ccc82 --- /dev/null +++ b/docker-compose/.env @@ -0,0 +1,2 @@ +KEY=123456 +SERVER=www.yourserver.com \ No newline at end of file diff --git a/docker-compose/client.yml b/docker-compose/client.yml index 1f27dfb..4eced79 100644 --- a/docker-compose/client.yml +++ b/docker-compose/client.yml @@ -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" \ No newline at end of file + command: "./pingtunnel -type client -l 0.0.0.0:1080 -s ${SERVER} -sock5 1 -key ${KEY}" \ No newline at end of file diff --git a/docker-compose/server.yml b/docker-compose/server.yml index 47756df..63e6009 100644 --- a/docker-compose/server.yml +++ b/docker-compose/server.yml @@ -5,4 +5,4 @@ services: image: esrrhs/pingtunnel:latest restart: always network_mode: host - command: "./pingtunnel -type server -key 123456" \ No newline at end of file + command: "./pingtunnel -type server -key ${KEY}" \ No newline at end of file