From 4737fe871127764f2d868fa434a4249e7a8939ef Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Mon, 13 May 2024 13:47:49 -0300 Subject: [PATCH] Added missing instruction --- SELF_HOST.md | 5 +++++ docker-compose.yaml | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/SELF_HOST.md b/SELF_HOST.md index a695f848..8c3c0aab 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 0cc9d434..049672dd 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