Skip to content

Add Docker Compose deploy variant for the web application #606

Description

@oliveres

Describe the feature you'd like

The Docker Compose configuration in docker/docker-compose.yml covers the CLI runners (hedge-fund, backtester, etc.) and an optional embedded Ollama, but there is no service for running the web application (FastAPI backend in app/backend + React frontend in app/frontend). Currently app/README.md only documents a manual local setup with separate uvicorn + npm run dev processes, which makes self-hosting on a server cumbersome.

Proposal: add a web profile to the existing docker/docker-compose.yml with two new services:

  • web-backend — reuses the existing ai-hedge-fund image without any changes to docker/Dockerfile or backend Python code; runs uvicorn app.backend.main:app on port 8000.
  • web-frontend — new multi-stage docker/Dockerfile.frontend (Node build → nginx) serving the production bundle on port 5173.

SQLite persistence (saved flows, run history, API keys) via a named volume, with VITE_API_URL overridable at build time so the same compose file works for local and remote deploys.

I have an implementation ready as a PR and will open it shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions