2.0 KiB
Self-hosting Firecrawl
We're currently working on a more in-depth guide on how to self-host, but in the meantime, here is a simplified version.
Refer to CONTRIBUTING.md for instructions on how to run it locally.
Getting Started
First, clone this repository and copy the example env file from the API folder .env.example
to .env
.
Steps
-
Clone the repository:
git clone https://github.com/mendableai/firecrawl.git cd firecrawl cp ./apps/api/.env.example ./.env
-
For running the simplest version of FireCrawl, edit the
USE_DB_AUTHENTICATION
in.env
to not use the database authentication:USE_DB_AUTHENTICATION=false
-
Update the Redis URL in the .env file to align with the Docker configuration:
REDIS_URL=redis://redis:6379
-
Option: Running with TypeScript Playwright Service
-
Update the
docker-compose.yml
file to change the Playwright service:build: apps/playwright-service
TO
build: apps/playwright-service-ts
-
Set the
PLAYWRIGHT_MICROSERVICE_URL
in your.env
file:PLAYWRIGHT_MICROSERVICE_URL=http://localhost:3000/scrape
-
Don't forget to set the proxy server in your
.env
file as needed.
-
-
Build and run the Docker containers:
docker compose build docker compose up
This will run a local instance of Firecrawl which can be accessed at http://localhost:3002
.
Install Firecrawl on a Kubernetes Cluster (Simple Version)
Read the examples/kubernetes-cluster-install/README.md for instructions on how to install Firecrawl on a Kubernetes Cluster.