diff --git a/main/live-agent-api/Dockerfile b/main/live-agent-api/Dockerfile deleted file mode 100644 index 957050c37..000000000 --- a/main/live-agent-api/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# Live Agent Dashboard API Dockerfile - -FROM python:3.12-slim - -# Set working directory -WORKDIR /app - -# Install uv -RUN pip install --no-cache-dir uv - -# Copy project files -COPY pyproject.toml ./ -COPY main.py ./ -COPY config ./config -COPY models ./models -COPY schemas ./schemas -COPY router ./router -COPY services ./services -COPY utils ./utils - -# Install dependencies using uv -RUN uv pip install --system -r pyproject.toml - -# Expose port -EXPOSE 8080 - -# Health check -HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD python -c "import requests; requests.get('http://localhost:8080/health')" || exit 1 - -# Run application -CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"] - diff --git a/main/live-agent-api/docker-compose.yml b/main/live-agent-api/docker-compose.yml deleted file mode 100644 index 8b4a70e5b..000000000 --- a/main/live-agent-api/docker-compose.yml +++ /dev/null @@ -1,61 +0,0 @@ -version: '3.8' - -services: - # PostgreSQL Database - postgres: - image: postgres:16-alpine - container_name: live-agent-db - environment: - POSTGRES_DB: live_agent_db - POSTGRES_USER: live_agent - POSTGRES_PASSWORD: password - ports: - - "5432:5432" - volumes: - - postgres_data:/var/lib/postgresql/data - healthcheck: - test: ["CMD-SHELL", "pg_isready -U live_agent"] - interval: 10s - timeout: 5s - retries: 5 - networks: - - live-agent-network - - # Live Agent Dashboard API - api: - build: - context: . - dockerfile: Dockerfile - container_name: live-agent-api - environment: - # Database - DATABASE_URL: postgresql+asyncpg://live_agent:password@postgres:5432/live_agent_db - - # OpenAI (use your own API key) - OPENAI_API_KEY: ${OPENAI_API_KEY:-sk-your-api-key-here} - OPENAI_MODEL: ${OPENAI_MODEL:-gpt-4o} - - # Snowflake ID Generator - INSTANCE_ID: ${INSTANCE_ID:-1} - - # Application - APP_ENV: ${APP_ENV:-development} - LOG_LEVEL: ${LOG_LEVEL:-INFO} - API_PREFIX: /api/v1 - ports: - - "8080:8080" - depends_on: - postgres: - condition: service_healthy - networks: - - live-agent-network - restart: unless-stopped - -volumes: - postgres_data: - driver: local - -networks: - live-agent-network: - driver: bridge -