docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. services:
  2. # Serveur LLM local
  3. ollama:
  4. image: ollama/ollama
  5. container_name: konan-ollama
  6. volumes:
  7. - ollama_data:/root/.ollama
  8. ports:
  9. - "11434:11434"
  10. restart: unless-stopped
  11. # Decommenter si GPU Nvidia disponible :
  12. # deploy:
  13. # resources:
  14. # reservations:
  15. # devices:
  16. # - driver: nvidia
  17. # count: all
  18. # capabilities: [gpu]
  19. # Bot Konan
  20. konan-bot:
  21. build: .
  22. container_name: konan-bot
  23. depends_on:
  24. - ollama
  25. env_file:
  26. - .env
  27. environment:
  28. - OLLAMA_URL=http://ollama:11434/api/chat
  29. - OLLAMA_GENERATE_URL=http://ollama:11434/api/generate
  30. volumes:
  31. - ./memory:/app/memory
  32. - ./voices:/app/voices
  33. - ./repos:/app/repos
  34. - ./reminders.json:/app/reminders.json
  35. - ./briefing_config.json:/app/briefing_config.json
  36. - ./google_credentials.json:/app/google_credentials.json
  37. - ./google_token.json:/app/google_token.json
  38. ports:
  39. - "8765:8765" # API HTTP pour le client vocal PC
  40. restart: unless-stopped
  41. volumes:
  42. ollama_data: