2024-05-05 03:12:17 +08:00
|
|
|
name: firecrawl
|
2024-06-30 21:18:05 +08:00
|
|
|
|
|
|
|
x-common-service: &common-service
|
|
|
|
build: apps/api
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
environment:
|
|
|
|
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
|
2024-07-18 10:44:23 +08:00
|
|
|
- REDIS_RATE_LIMIT_URL=${REDIS_URL:-redis://redis:6379}
|
2024-06-30 21:18:05 +08:00
|
|
|
- PLAYWRIGHT_MICROSERVICE_URL=${PLAYWRIGHT_MICROSERVICE_URL:-http://playwright-service:3000}
|
|
|
|
- USE_DB_AUTHENTICATION=${USE_DB_AUTHENTICATION}
|
|
|
|
- PORT=${PORT:-3002}
|
|
|
|
- NUM_WORKERS_PER_QUEUE=${NUM_WORKERS_PER_QUEUE}
|
|
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
2024-07-16 10:22:54 +08:00
|
|
|
- OPENAI_BASE_URL=${OPENAI_BASE_URL}
|
|
|
|
- MODEL_NAME=${MODEL_NAME:-gpt-4o}
|
2024-06-30 21:18:05 +08:00
|
|
|
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}
|
|
|
|
- SERPER_API_KEY=${SERPER_API_KEY}
|
|
|
|
- LLAMAPARSE_API_KEY=${LLAMAPARSE_API_KEY}
|
|
|
|
- LOGTAIL_KEY=${LOGTAIL_KEY}
|
|
|
|
- BULL_AUTH_KEY=${BULL_AUTH_KEY}
|
|
|
|
- TEST_API_KEY=${TEST_API_KEY}
|
|
|
|
- POSTHOG_API_KEY=${POSTHOG_API_KEY}
|
|
|
|
- POSTHOG_HOST=${POSTHOG_HOST}
|
|
|
|
- SUPABASE_ANON_TOKEN=${SUPABASE_ANON_TOKEN}
|
|
|
|
- SUPABASE_URL=${SUPABASE_URL}
|
|
|
|
- SUPABASE_SERVICE_TOKEN=${SUPABASE_SERVICE_TOKEN}
|
|
|
|
- SCRAPING_BEE_API_KEY=${SCRAPING_BEE_API_KEY}
|
|
|
|
- HOST=${HOST:-0.0.0.0}
|
2024-07-07 21:10:35 +08:00
|
|
|
- SELF_HOSTED_WEBHOOK_URL=${SELF_HOSTED_WEBHOOK_URL}
|
2024-08-04 14:05:53 +08:00
|
|
|
- LOGGING_LEVEL=${LOGGING_LEVEL}
|
2024-07-07 21:10:35 +08:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2024-06-30 21:18:05 +08:00
|
|
|
|
2024-05-05 03:12:17 +08:00
|
|
|
services:
|
|
|
|
playwright-service:
|
|
|
|
build: apps/playwright-service
|
|
|
|
environment:
|
|
|
|
- PORT=3000
|
2024-05-24 23:41:34 +08:00
|
|
|
- PROXY_SERVER=${PROXY_SERVER}
|
|
|
|
- PROXY_USERNAME=${PROXY_USERNAME}
|
|
|
|
- PROXY_PASSWORD=${PROXY_PASSWORD}
|
|
|
|
- BLOCK_MEDIA=${BLOCK_MEDIA}
|
2024-05-11 05:20:33 +08:00
|
|
|
networks:
|
2024-05-14 00:47:49 +08:00
|
|
|
- backend
|
2024-06-30 21:18:05 +08:00
|
|
|
|
2024-05-05 03:12:17 +08:00
|
|
|
api:
|
2024-06-30 21:18:05 +08:00
|
|
|
<<: *common-service
|
2024-05-05 03:12:17 +08:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- playwright-service
|
|
|
|
ports:
|
|
|
|
- "3002:3002"
|
|
|
|
command: [ "pnpm", "run", "start:production" ]
|
|
|
|
|
|
|
|
worker:
|
2024-06-30 21:18:05 +08:00
|
|
|
<<: *common-service
|
2024-05-05 03:12:17 +08:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- playwright-service
|
2024-05-10 22:38:17 +08:00
|
|
|
- api
|
2024-07-13 03:51:20 +08:00
|
|
|
command: [ "pnpm", "run", "workers" ]
|
2024-06-30 21:18:05 +08:00
|
|
|
|
2024-05-14 00:47:49 +08:00
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
command: redis-server --bind 0.0.0.0
|
2024-05-11 05:15:32 +08:00
|
|
|
|
|
|
|
networks:
|
2024-05-14 00:47:49 +08:00
|
|
|
backend:
|
|
|
|
driver: bridge
|