企業內部的網站作為知識庫給dify使用,使用fircrawl來爬蟲并且轉換為markdown。
?
git clone https://github.com/mendableai/firecrawl.gitcd ./firecrawl/apps/api/
cp .env.example .env
cd ~/firecrawl
docker compose up -d
官方:
https://github.com/mendableai/firecrawl/blob/main/CONTRIBUTING.md
Alternative: Using Docker Compose
For a simpler setup, you can use Docker Compose to run all services:
- Prerequisites: Make sure you have Docker and Docker Compose installed
- Copy the?
.env.example
?file to?.env
?in the?/apps/api/
?directory and configure as needed - From the root directory, run:
docker compose up
This will start Redis, the API server, and workers automatically in the correct configuration.
后臺運行,加-d參數:
docker compose up -d