2021-06-09 16:41:19 +08:00
|
|
|
# goproxy
|
2021-06-08 20:44:08 +08:00
|
|
|
|
2021-06-09 16:41:19 +08:00
|
|
|
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
|
2021-06-08 20:44:08 +08:00
|
|
|
Docker [stilleshan/goproxy](https://hub.docker.com/r/stilleshan/goproxy)
|
|
|
|
> *docker image support for X86 and ARM*
|
|
|
|
|
2021-06-13 22:28:12 +08:00
|
|
|
## 简介
|
|
|
|
基于 [snail007/goproxy](https://github.com/snail007/goproxy) 项目的 docker 镜像.
|
|
|
|
|
|
|
|
## 更新
|
2022-07-20 11:06:55 +08:00
|
|
|
- **2022-07-20** 更新`11.9`版 docker 镜像.
|
2022-04-27 23:12:48 +08:00
|
|
|
- **2022-04-27** 更新`11.8`版 docker 镜像.
|
2022-04-11 20:36:57 +08:00
|
|
|
- **2022-04-11** 更新`11.7`版 docker 镜像.
|
2021-11-29 15:22:59 +08:00
|
|
|
- **2021-11-29** 更新`11.3`版 docker 镜像.
|
2021-09-27 16:47:33 +08:00
|
|
|
- **2021-09-27** 更新`11.2`版 docker 镜像.
|
2021-08-25 16:08:12 +08:00
|
|
|
- **2021-08-25** 更新`11.1`版 docker 镜像.
|
2021-07-23 10:28:48 +08:00
|
|
|
- **2021-07-23** 更新`11.0`版 docker 镜像.
|
2021-07-21 16:15:09 +08:00
|
|
|
- **2021-07-21** 更新`10.9`版 docker 镜像.
|
2021-07-06 11:05:45 +08:00
|
|
|
- **2021-07-06** 更新`10.8`版 docker 镜像.
|
|
|
|
- **2021-06-09** 更新`10.7`版 docker 镜像,新增同时支持 X86 和 ARM 架构.
|
2021-06-13 22:28:12 +08:00
|
|
|
|
|
|
|
## 部署
|
|
|
|
### docker
|
|
|
|
#### 单个代理服务
|
|
|
|
启动一个端口为`11111`的 **http** 代理
|
2021-06-08 20:44:08 +08:00
|
|
|
```shell
|
2021-06-13 22:28:12 +08:00
|
|
|
docker run -d --name=goproxy --restart=always --network=host stilleshan/goproxy /proxy http -p :11111
|
2021-06-08 20:44:08 +08:00
|
|
|
```
|
|
|
|
|
2021-06-13 22:28:12 +08:00
|
|
|
启动一个端口为`22222`的 **socks5** 代理
|
2021-06-08 20:44:08 +08:00
|
|
|
```shell
|
2021-06-13 22:28:12 +08:00
|
|
|
docker run -d --name=goproxy --restart=always --network=host stilleshan/goproxy /proxy socks -p :22222
|
2021-06-08 20:44:08 +08:00
|
|
|
```
|
|
|
|
|
2021-06-13 22:28:12 +08:00
|
|
|
#### 多个代理服务
|
|
|
|
单个容器同时启动 **http** 和 **socks5** 代理
|
2021-06-08 20:44:08 +08:00
|
|
|
```shell
|
2021-06-13 22:28:12 +08:00
|
|
|
docker run -d --name=goproxy --restart=always --network=host stilleshan/goproxy sh -c '/proxy http -p :11111 & /proxy socks -p :22222'
|
2021-06-08 20:44:08 +08:00
|
|
|
```
|
2021-06-13 22:28:12 +08:00
|
|
|
> *自行添加命令,每项服务命令之间使用 **&** 符号分隔,最后一项服务命令末尾无需 **&** 符号.*
|
2021-06-08 20:44:08 +08:00
|
|
|
|
2021-06-13 22:28:12 +08:00
|
|
|
### docker compose
|
2021-06-09 16:41:19 +08:00
|
|
|
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/goproxy/docker-compose.yml) 执行以下命令启动:
|
2021-06-08 20:44:08 +08:00
|
|
|
```shell
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
2021-06-13 22:28:12 +08:00
|
|
|
> *自行添加命令,每项服务命令之间使用 **&** 符号分隔,最后一项服务命令末尾无需 **&** 符号.*
|
2021-06-09 16:41:19 +08:00
|
|
|
|
|
|
|
## 参考
|
2021-06-13 22:28:12 +08:00
|
|
|
- GitHub [snail007/goproxy](https://github.com/snail007/goproxy)
|
|
|
|
- [轻量级高性能 HTTP/HTTPS SOCKS5 代理软件 goproxy docker 部署教程](https://www.ioiox.com/archives/131.html)
|
2021-06-09 16:41:19 +08:00
|
|
|
|