mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-08 18:09:00 +08:00
(Docs) Self Host added new ts playwright service instructions
This commit is contained in:
parent
abb44bb112
commit
8d09c5f9b5
80
SELF_HOST.md
80
SELF_HOST.md
@ -1,34 +1,66 @@
|
|||||||
# Self-hosting Firecrawl
|
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.*
|
|
||||||
|
## 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](https://github.com/mendableai/firecrawl/blob/main/CONTRIBUTING.md) for instructions on how to run it locally.
|
Refer to [CONTRIBUTING.md](https://github.com/mendableai/firecrawl/blob/main/CONTRIBUTING.md) for instructions on how to run it locally.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
First, clone this repository and copy the example env file from api folder `.env.example` to `.env`.
|
First, clone this repository and copy the example env file from the API folder `.env.example` to `.env`.
|
||||||
```bash
|
|
||||||
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` on `.env` to not use the database authentication.
|
### Steps
|
||||||
```yml
|
|
||||||
USE_DB_AUTHENTICATION=false
|
|
||||||
```
|
|
||||||
|
|
||||||
Update the Redis URL in the .env file to align with the Docker configuration:
|
|
||||||
```yml
|
|
||||||
REDIS_URL=redis://redis:6379
|
|
||||||
```
|
|
||||||
|
|
||||||
Once that's complete, you can simply run the following commands to get started:
|
|
||||||
```bash
|
|
||||||
docker compose up
|
|
||||||
```
|
|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
This will run a local instance of Firecrawl which can be accessed at `http://localhost:3002`.
|
This will run a local instance of Firecrawl which can be accessed at `http://localhost:3002`.
|
||||||
|
|
||||||
# Install Firecrawl on a Kubernetes Cluster (Simple Version)
|
## Install Firecrawl on a Kubernetes Cluster (Simple Version)
|
||||||
Read the [examples/kubernetes-cluster-install/README.md](examples/kubernetes-cluster-install/README.md) for instructions on how to install Firecrawl on a Kubernetes Cluster.
|
|
||||||
|
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.
|
Loading…
x
Reference in New Issue
Block a user