2024-07-03 12:00:44 -07:00
## Self-hosting Firecrawl
2024-04-15 17:01:47 -04:00
2024-07-03 12:00:44 -07:00
_ We're currently working on a more in-depth guide on how to self-host, but in the meantime, here is a simplified version. _
2024-05-10 11:38:17 -03:00
2024-07-03 12:00:44 -07:00
Refer to [CONTRIBUTING.md ](https://github.com/mendableai/firecrawl/blob/main/CONTRIBUTING.md ) for instructions on how to run it locally.
2024-04-15 17:01:47 -04:00
2024-07-03 12:00:44 -07:00
## Getting Started
2024-05-05 12:03:42 -04:00
2024-07-03 12:00:44 -07:00
First, clone this repository and copy the example env file from the API folder `.env.example` to `.env` .
2024-05-13 13:47:49 -03:00
2024-07-03 12:00:44 -07:00
### Steps
2024-05-05 12:03:42 -04:00
2024-07-03 12:00:44 -07:00
1. Clone the repository:
```bash
git clone https://github.com/mendableai/firecrawl.git
cd firecrawl
cp ./apps/api/.env.example ./.env
` ``
2. For running the simplest version of FireCrawl, edit the ` USE_DB_AUTHENTICATION` in ` .env` to not use the database authentication:
` ``plaintext
USE_DB_AUTHENTICATION=false
` ``
3. Update the Redis URL in the .env file to align with the Docker configuration:
` ``plaintext
REDIS_URL=redis://redis:6379
` ``
4. #### Option: Running with TypeScript Playwright Service
* Update the ` docker-compose.yml` file to change the Playwright service:
` ``plaintext
build: apps/playwright-service
` ``
TO
` ``plaintext
build: apps/playwright-service-ts
` ``
* Set the ` PLAYWRIGHT_MICROSERVICE_URL` in your ` .env` file:
` ``plaintext
PLAYWRIGHT_MICROSERVICE_URL=http://localhost:3000/scrape
` ``
* Don't forget to set the proxy server in your ` .env` file as needed.
5. Build and run the Docker containers:
` ``bash
docker compose build
docker compose up
` ``
2024-05-17 18:46:59 -07:00
2024-05-05 12:03:42 -04:00
This will run a local instance of Firecrawl which can be accessed at ` http://localhost:3002`.
2024-06-04 20:52:08 +02:00
2024-07-03 12:00:44 -07:00
## Install Firecrawl on a Kubernetes Cluster (Simple Version)
2024-07-04 17:49:09 -03:00
Read the [examples/kubernetes-cluster-install/README.md ](https://github.com/mendableai/firecrawl/blob/main/examples/kubernetes-cluster-install/README.md ) for instructions on how to install Firecrawl on a Kubernetes Cluster.