| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- services:
- app:
- build: .
- ports:
- - "5000:5000"
- environment:
- - FLASK_ENV=production
- - FLASK_DEBUG=false
- - FLASK_HOST=0.0.0.0
- - FLASK_PORT=5000
- - FLASK_APP=src.app
- - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/agent
- - SECRET_KEY=${SECRET_KEY:-dev-secret-key-change-in-production}
- - SERPAPI_KEY=${SERPAPI_KEY}
- - SERPAPI_API_KEY=${SERPAPI_KEY}
- - WIKI_USERNAME=${WIKI_USERNAME}
- - WIKI_PASSWORD=${WIKI_PASSWORD}
- - SCW_API_KEY=${SCW_API_KEY}
- - SCW_ENDPOINT=${SCW_ENDPOINT:-d7d5949a-c2bb-484a-b973-e05a83510efd}
- - SCW_MODEL=${SCW_MODEL:-mistral-small-3.2-24b-instruct-2506}
- - OLLAMA_HOST=http://ollama:11434
- - UPLOAD_FOLDER=uploads
- - MAX_CONTENT_LENGTH=16777216
- volumes:
- - ./uploads:/app/uploads
- - ./data:/app/data
- - ./src/data:/app/src/data
- depends_on:
- postgres:
- condition: service_healthy
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:5000/"]
- interval: 30s
- timeout: 10s
- retries: 3
- postgres:
- image: postgres:15-alpine
- ports:
- - "5432:5432" # Expose pour mode local (app sur Windows)
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=agent
- volumes:
- - postgres_data:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U postgres"]
- interval: 5s
- timeout: 5s
- retries: 5
- ollama:
- image: ollama/ollama:latest
- ports:
- - "11434:11434"
- volumes:
- - ollama_data:/root/.ollama
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
- interval: 30s
- timeout: 10s
- retries: 3
- volumes:
- ollama_data:
- postgres_data:
|