https://github.com/svettwer/dev-proxy
A proxy setup for development purposes using docker
https://github.com/svettwer/dev-proxy
dev-proxy docker proxy proxy-server proxy-setup
Last synced: about 2 months ago
JSON representation
A proxy setup for development purposes using docker
- Host: GitHub
- URL: https://github.com/svettwer/dev-proxy
- Owner: svettwer
- Created: 2020-08-03T09:38:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T12:13:47.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T10:30:13.636Z (4 months ago)
- Topics: dev-proxy, docker, proxy, proxy-server, proxy-setup
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dev-proxy
A proxy setup for development purposes using docker.## Get it
```
docker pull svettwer/dev-proxy
```## Run it
```bash
docker run --it --rm --name dev-proxy \
--publish 3128:3128 \
--volume /squid.conf:/etc/squid/squid.conf \
--volume /srv/docker/squid/cache:/var/spool/squid \
dev-proxy
```or use
```bash
sh run.sh
```## Use it
The container ships with a preconfigured user to test proxy authentication.
user: foobar
password: foo
```bash
PROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dev-proxy)
wget -e use_proxy=yes -e http_proxy=http://foobar:foo@${PROXY_IP}:3128 google.de
```## Configure it
Change `squid.conf`.
See [Squid config docs](http://www.squid-cache.org/Doc/config/) for options.
Config options of the base image can be found on [Docker hub](https://hub.docker.com/r/sameersbn/squid)## Reconfigure it
To reload the config in a running dev-proxy container, use `docker kill -s HUP dev-proxy`.## Build it yourself
```bash
git clone https://github.com/svettwer/dev-proxy
cd dev-proxy
docker build . -t dev-proxy
```