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/Readme.md b/docker-compose/Readme.md new file mode 100644 index 0000000..834b79e --- /dev/null +++ b/docker-compose/Readme.md @@ -0,0 +1,16 @@ +Deploy with docker-compose +=========================== + **First** edit `.env` file in this directory to your appropriate value. + +**Then** run stack with these commands: + +- in the server +``` +docker-compose -f server.yml up -d +``` +- in client machine +``` +docker-compose -f client.yml up -d +``` + +**Now** use socks5 proxy at port `1080` of your client machine \ No newline at end of file diff --git a/docker-compose/client.yml b/docker-compose/client.yml new file mode 100644 index 0000000..4eced79 --- /dev/null +++ b/docker-compose/client.yml @@ -0,0 +1,9 @@ +version: "3.7" + +services: + pingtunnelServer: + image: esrrhs/pingtunnel:latest + restart: always + ports: + - 1080:1080 + 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 new file mode 100644 index 0000000..63e6009 --- /dev/null +++ b/docker-compose/server.yml @@ -0,0 +1,8 @@ +version: "3.7" + +services: + pingtunnelServer: + image: esrrhs/pingtunnel:latest + restart: always + network_mode: host + command: "./pingtunnel -type server -key ${KEY}" \ No newline at end of file