Restructure: Move services from root to unified repo
Moved updated services from /home/sam/development/ root into aboutme_chat_demo/: - knowledge_service/ (with ChromaDB, gitea_scraper, FastAPI) - langgraph_service/ (with LangGraph agent orchestration) - airflow/ (with DAGs for scheduled ingestion) All services now in single repo location. Modular docker-compose files per service maintained. Removed duplicate nested directories. Updated files reflect latest working versions.
This commit is contained in:
@@ -6,16 +6,22 @@ RUN apt-get update && apt-get install -y \
|
||||
g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create app directory
|
||||
# Create directories
|
||||
RUN mkdir -p /app/packages /app/code
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements
|
||||
# Install packages to isolated directory
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --target=/app/packages -r requirements.txt
|
||||
|
||||
# Copy code
|
||||
COPY . .
|
||||
COPY . /app/code/
|
||||
|
||||
ENV PYTHONPATH=/app/packages
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app/code
|
||||
EXPOSE 8090
|
||||
|
||||
CMD ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8090"]
|
||||
|
||||
26
langgraph_service/docker-compose.yml
Normal file
26
langgraph_service/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
langgraph-service:
|
||||
build: .
|
||||
image: langgraph-service:latest
|
||||
container_name: langgraph-service
|
||||
ports:
|
||||
- "8090:8090"
|
||||
volumes:
|
||||
# Only mount code files, not packages
|
||||
- ./main.py:/app/code/main.py:ro
|
||||
- ./supervisor_agent.py:/app/code/supervisor_agent.py:ro
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
- PYTHONPATH=/app/packages
|
||||
- OPENCODE_PASSWORD=${OPENCODE_PASSWORD:-sam4jo}
|
||||
- KNOWLEDGE_SERVICE_URL=http://knowledge-service:8080
|
||||
networks:
|
||||
- ai-mesh
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
ai-mesh:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user