diff --git a/SELF_HOST.md b/SELF_HOST.md index a695f84..8c3c0aa 100644 --- a/SELF_HOST.md +++ b/SELF_HOST.md @@ -14,6 +14,11 @@ For running the simplest version of FireCrawl, edit the `USE_DB_AUTHENTICATION` 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 diff --git a/docker-compose.yaml b/docker-compose.yaml index 0cc9d43..049672d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,17 +1,12 @@ name: firecrawl version: '3.9' services: - redis: - image: redis:alpine - networks: - - default - playwright-service: build: apps/playwright-service environment: - PORT=3000 networks: - - default + - backend api: build: apps/api @@ -42,7 +37,7 @@ services: - "3002:3002" command: [ "pnpm", "run", "start:production" ] networks: - - default + - backend worker: build: apps/api @@ -71,7 +66,13 @@ services: - playwright-service - api networks: - - default + - backend + redis: + image: redis:alpine + networks: + - backend + command: redis-server --bind 0.0.0.0 networks: - default: + backend: + driver: bridge