A lightweight Docker image for running Tinyproxy — a fast, minimal HTTP/HTTPS proxy server.
Pull the prebuilt image from GitHub Container Registry and run it:
docker pull ghcr.io/niklasthorild/tinyproxy-docker:latest
docker run -d --name tinyproxy -p 8888:8888 -e TZ=UTC ghcr.io/niklasthorild/tinyproxy-docker:latestSet your app/system proxy to http://localhost:8888.
Mount your own tinyproxy.conf into the container:
docker run -d --name tinyproxy \
-p 8888:8888 \
-e TZ=UTC \
-v "$(pwd)/tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf:ro" \
ghcr.io/niklasthorild/tinyproxy-docker:latestCommon options in tinyproxy.conf:
Port 8888— internal proxy port (must match your container port mapping)Allow 127.0.0.1orAllow 10.0.0.0/8— restrict accessBasicAuth <user> <password>— simple auth (optional)
services:
tinyproxy:
image: ghcr.io/niklasthorild/tinyproxy-docker:latest
container_name: tinyproxy
ports:
- "8888:8888"
environment:
- TZ=UTC
volumes:
- ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf:ro
restart: unless-stoppedStart it:
docker compose up -d# Should return your outbound IP via the proxy
curl -x http://localhost:8888 https://ifconfig.medocker logs -f tinyproxy # tail logs
docker stop tinyproxy # stop
docker rm tinyproxy # remove