Spaces:
Runtime error
Runtime error
File size: 872 Bytes
c1f04cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 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 |