browserpilot / docker-compose.yml
ncolex's picture
Deploy BrowserPilot with NumPy fix (2.2.6)
c1f04cf verified
version: '3.8'
services:
browserpilot:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
# Required: Add your Google AI API key
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
# Optional: Proxy configuration
- SCRAPER_PROXIES=${SCRAPER_PROXIES:-[]}
volumes:
# Persist outputs directory
- ./outputs:/app/outputs
# Optional: Mount .env file for local development
- ./.env:/app/.env:ro
restart: unless-stopped
# Use SHM size to prevent browser crashes
shm_size: '2gb'
# Security options for running browsers
security_opt:
- seccomp:unconfined
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
default:
name: browserpilot-network