Files
New-planet-ai-agent/docker-compose.yml

33 lines
811 B
YAML

version: '3.8'
services:
ai-agents:
ports:
- "8001:8000"
build:
context: .
dockerfile: Dockerfile
container_name: new-planet-ai-agents
environment:
- REDIS_URL=redis://newplanet-redis:6379/0
- GIGACHAT_CLIENT_ID=${GIGACHAT_CLIENT_ID}
- GIGACHAT_CLIENT_SECRET=${GIGACHAT_CLIENT_SECRET}
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- PYTHONPATH=/app
volumes:
- ./agents:/app/agents
- ./models:/app/models
- ./services:/app/services
- ./prompts:/app/prompts
- ./scripts:/app/scripts
- ./app.py:/app/app.py
networks:
- new-planet-network
# Запуск FastAPI сервера
command: uvicorn app:app --host 0.0.0.0 --port 8000
networks:
new-planet-network:
external: true