When AgenticSeek is deployed on a remote server and accessed from a different machine, the frontend JavaScript runs in the user's browser with localhost:7777 which resolves to the user's local machine, not the server - causing the 'System offline' error even though the backend is running. Change docker-compose.yml to read REACT_APP_BACKEND_URL from .env (defaulting to http://localhost:7777 for local use) and document the variable in .env.example so users can point the frontend at their server's public IP when deploying remotely.
109 lines
2.7 KiB
YAML
109 lines
2.7 KiB
YAML
|
|
services:
|
|
redis:
|
|
container_name: redis
|
|
profiles: ["core", "full"]
|
|
image: docker.io/valkey/valkey:8-alpine
|
|
command: valkey-server --save 30 1 --loglevel warning
|
|
restart: unless-stopped
|
|
volumes:
|
|
- redis-data:/data
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- SETGID
|
|
- SETUID
|
|
- DAC_OVERRIDE
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "1m"
|
|
max-file: "1"
|
|
networks:
|
|
- agentic-seek-net
|
|
|
|
searxng:
|
|
container_name: searxng
|
|
profiles: ["core", "full"]
|
|
image: docker.io/searxng/searxng:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./searxng:/etc/searxng:rw,z
|
|
environment:
|
|
- SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://localhost:8080/}
|
|
- SEARXNG_SECRET_KEY=${SEARXNG_SECRET_KEY}
|
|
- UWSGI_WORKERS=4
|
|
- UWSGI_THREADS=4
|
|
cap_add:
|
|
- CHOWN
|
|
- SETGID
|
|
- SETUID
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "1m"
|
|
max-file: "1"
|
|
depends_on:
|
|
- redis
|
|
networks:
|
|
- agentic-seek-net
|
|
|
|
frontend:
|
|
container_name: frontend
|
|
profiles: ["core", "full"]
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile.frontend
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./frontend/agentic-seek-front/src:/app/src:rw,z
|
|
- ./screenshots:/app/screenshots
|
|
environment:
|
|
- NODE_ENV=development
|
|
- CHOKIDAR_USEPOLLING=true
|
|
- REACT_APP_BACKEND_URL=${REACT_APP_BACKEND_URL:-http://localhost:7777}
|
|
networks:
|
|
- agentic-seek-net
|
|
|
|
backend:
|
|
container_name: backend
|
|
profiles: ["backend", "full"]
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.backend
|
|
ports:
|
|
- ${BACKEND_PORT:-7777}:${BACKEND_PORT:-7777}
|
|
volumes:
|
|
- ./:/app
|
|
- ${WORK_DIR:-.}:/opt/workspace
|
|
command: python3 api.py
|
|
environment:
|
|
- SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://searxng:8080}
|
|
- REDIS_URL=${REDIS_BASE_URL:-redis://redis:6379/0}
|
|
- WORK_DIR=/opt/workspace
|
|
- BACKEND_PORT=${BACKEND_PORT}
|
|
- DOCKER_INTERNAL_URL=http://host.docker.internal
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
|
|
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
|
|
- TOGETHER_API_KEY=${TOGETHER_API_KEY}
|
|
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
|
- HUGGINGFACE_API_KEY=${HUGGINGFACE_API_KEY}
|
|
- DSK_DEEPSEEK_API_KEY=${DSK_DEEPSEEK_API_KEY}
|
|
networks:
|
|
- agentic-seek-net
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
redis-data:
|
|
chrome_profiles:
|
|
|
|
networks:
|
|
agentic-seek-net:
|
|
driver: bridge
|