diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 218eb05..e242053 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -2,19 +2,25 @@ version: '3.8' services: frontend: - build: ghcr.io/modsetter/surfsense_ui:latest + build: + context: ./surfsense_web + dockerfile: Dockerfile ports: - "${FRONTEND_PORT:-3000}:3000" volumes: - ./surfsense_web:/app - /app/node_modules + env_file: + - ./surfsense_web/.env depends_on: - backend environment: - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://backend:8000} backend: - build: ghcr.io/modsetter/surfsense_backend:latest + build: + context: ./surfsense_backend + dockerfile: Dockerfile ports: - "${BACKEND_PORT:-8000}:8000" volumes: @@ -28,14 +34,5 @@ services: - PYTHONPATH=/app - UVICORN_LOOP=asyncio - UNSTRUCTURED_HAS_PATCHED_LOOP=1 - - NVIDIA_VISIBLE_DEVICES=all - - NVIDIA_DRIVER_CAPABILITIES=compute,utility - LANGCHAIN_TRACING_V2=false - LANGSMITH_TRACING=false - deploy: - resources: - reservations: - devices: - - driver: nvidia - count: all - capabilities: [gpu] diff --git a/surfsense_backend/Dockerfile b/surfsense_backend/Dockerfile index b9630a4..bb7671c 100644 --- a/surfsense_backend/Dockerfile +++ b/surfsense_backend/Dockerfile @@ -21,8 +21,12 @@ RUN pip install --upgrade certifi pip-system-certs COPY pyproject.toml . COPY uv.lock . -# Install CUDA-enabled PyTorch for WSL2 before other dependencies -RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 +# Install PyTorch based on architecture +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121; \ + else \ + pip install --no-cache-dir torch torchvision torchaudio; \ + fi # Install python dependencies RUN pip install --no-cache-dir uv && \ @@ -58,4 +62,4 @@ ENV UVICORN_LOOP=asyncio # Run EXPOSE 8000 -CMD ["python", "main.py"] \ No newline at end of file +CMD ["python", "main.py", "--reload"] \ No newline at end of file diff --git a/surfsense_web/components/ModernHeroWithGradients.tsx b/surfsense_web/components/ModernHeroWithGradients.tsx index 8c1128b..1c1f236 100644 --- a/surfsense_web/components/ModernHeroWithGradients.tsx +++ b/surfsense_web/components/ModernHeroWithGradients.tsx @@ -50,7 +50,8 @@ export function ModernHeroWithGradients() {
A Customizable AI Research Agent just like NotebookLM or Perplexity, but connected to - external sources such as Search Engines, Slack, Linear, Jira, Confluence, Notion, YouTube, GitHub, Discord and more. + external sources such as Search Engines, Slack, Linear, Jira, Confluence, Notion, + YouTube, GitHub, Discord and more.