feat(container): add docker compose and docker docs

This commit is contained in:
Sawyer 2025-08-05 19:42:52 -05:00
parent c4eba52ba8
commit 6698ac016c
2 changed files with 30 additions and 0 deletions

View file

@ -11,6 +11,16 @@ Simple HTTP proxy that renders pages with undetected-chromedriver and returns th
## Installation ## Installation
### Container
```sh
docker run --rm -p "32323:32323" ghcr.io/s4wyer/chromedriver-http-proxy # or s44wyer/chromedriver-http-proxy
```
There's also a [Docker compose example](/docker-compose.yml) with better config.
### System
uv: uv:
```sh ```sh

20
docker-compose.yml Normal file
View file

@ -0,0 +1,20 @@
services:
chromedriver-http-proxy:
image: ghcr.io/s4wyer/chromedriver-http-proxy:latest
container_name: chromedriver-http-proxy
ports:
- "32323:32323"
environment:
- PROXY_PORT=32323
- PROXY_HOST=0.0.0.0
- SCRAPER_WAIT_TIME=10
- SCRAPER_HEADLESS=True
- SCRAPER_USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36"
# Increase shared memory size to prevent Chromium from crashing.
# Recommended by Selenium https://hub.docker.com/r/selenium/standalone-chrome
shm_size: '2gb'
restart: unless-stopped