mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
feat:remove useless
This commit is contained in:
parent
a9db733dd6
commit
62b5977756
2 changed files with 0 additions and 94 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
Loading…
Reference in a new issue