docker-compose.yml 1.59 KB
services:
  api:
    build: .
    container_name: llm-call-platform
    ports:
      - "8011:8011"
    environment:
      - LLMCP_DB_HOST=192.168.3.92
      - LLMCP_DB_PORT=3308
      - LLMCP_DB_USER=biz_multi_agentic
      - LLMCP_DB_PASSWORD=JEIjHeLT
      - LLMCP_DB_NAME=ai_llmbase
      - LLMCP_ENCRYPTION_KEY=${LLMCP_ENCRYPTION_KEY:-change-me-in-production-must-be-32-bytes-long!}
      - LLMCP_JWT_SECRET_KEY=${LLMCP_JWT_SECRET_KEY:-change-me-in-production}
      - LLMCP_LOG_LEVEL=INFO
      - LLMCP_LOG_STORAGE_PATH=/app/logs
      - LLMCP_LOG_RETENTION_DAYS=7
      - LLMCP_CELERY_BROKER_URL=redis://192.168.3.209:6379/0
      - LLMCP_CELERY_RESULT_BACKEND=redis://192.168.3.209:6379/1
    volumes:
      - ./logs:/app/logs
    restart: unless-stopped

  celery:
    build: .
    container_name: llm-call-platform-celery
    entrypoint: [""]
    command: celery -A app.celery_app worker -l info -P prefork --concurrency=4
    environment:
      - LLMCP_DB_HOST=192.168.3.92
      - LLMCP_DB_PORT=3308
      - LLMCP_DB_USER=biz_multi_agentic
      - LLMCP_DB_PASSWORD=JEIjHeLT
      - LLMCP_DB_NAME=ai_llmbase
      - LLMCP_ENCRYPTION_KEY=${LLMCP_ENCRYPTION_KEY:-change-me-in-production-must-be-32-bytes-long!}
      - LLMCP_JWT_SECRET_KEY=${LLMCP_JWT_SECRET_KEY:-change-me-in-production}
      - LLMCP_LOG_LEVEL=INFO
      - LLMCP_LOG_STORAGE_PATH=/app/logs
      - LLMCP_LOG_RETENTION_DAYS=7
      - LLMCP_CELERY_BROKER_URL=redis://192.168.3.209:6379/0
      - LLMCP_CELERY_RESULT_BACKEND=redis://192.168.3.209:6379/1
      - LLMCP_DB_POOL_SIZE=4
    volumes:
      - ./logs:/app/logs
    restart: unless-stopped