Lightweight docker image with tiny 3proxy server. This configuration doesn't have any restrictions on traffic.
When USER and PASS are not specified, it will create a user with a random password. You will see the credentials in the logs.
docker pull timkolotov/3proxy-docker
docker run -d --restart always -p 1080:1080 -p 8080:8080 --name 3proxy timkolotov/3proxy-docker
docker logs 3proxy
Run a container with a specified user and password
docker run -d --restart always -p 1080:1080 -p 8080:8080 -e USER=userName -e PASS=secretPass --name 3proxy timkolotov/3proxy-docker
Before running a container, you must create a passwd file with 3proxy users. This file has the following format:
userName1:CL:secretPass1
userName2:CL:secretPass2
docker run -d --restart always -p 1080:1080 -p 8080:8080 -v /path_to/passwd:/etc/3proxy/passwd --name 3proxy timkolotov/3proxy-docker
version: '2'
services:
3proxy:
image: timkolotov/3proxy-docker
container_name: 3proxy
restart: always
environment:
- HTTP_PORT=8080
- SOCKS_PORT=1080
volumes:
- ./passwd:/etc/3proxy/passwd:ro
ports:
- "1080:1080"
- "8080:8080"
- USER, PASS - preset USER with PASSword
- HTTP_PORT - set port for http proxy. Default: 8080
- SOCKS_PORT - set port for socks5 proxy. Default: 1080