The PX proxy from genotrace in a docker container. Sourcecode: https://github.com/genotrance/px
947
This is a Docker Image created by me after trying out a long time to deploy PX in docker.
This image is created from the original PX proxy from genotrace: https://github.com/genotrance/px
Since I don't want everybody to have the same issues, I decided to create an image for everyone and document it here.
You need to set the following parameters as environment variables:
username=domain\usernamepassword=your-passwordproxy_url=your-proxy-urlworkers=2threats=5logging=1Adjust the variables to your belongings. You must set all of these, otherwise the container will not run.
PX needs to run due to gnome keyring with higher privileges.
This can be archieved by using the --privileged flag or adding the cap_add ipc_lock functionality.
You have to adjust the following settings:
docker run --privileged -e "username=domain\user" -e "password=mypass" -e "proxy_url=my-proxy.company.com:port" -p 3128:3128 nobody1997/px-proxy:latest
Simpy run this docker-compose snippet and adjust the variables to your belongings. You have to adjust the following settings:
version: '3.5'
services:
px_proxy:
image: nobody1997/px-proxy:latest
container_name: px_proxy
environment:
- username=domain\user
- password=Your-password
- proxy_url=my-proxy.company.com:port
- workers=2
- threats=5
- logging=1
cap_add:
- ipc_lock
ports:
- 3128:3128
docker pull nobody1997/px-proxy:latest