docker-compose.yaml 771 B

12345678910111213141516171819202122232425262728293031323334
  1. services:
  2. ollama:
  3. volumes:
  4. - ollama:/root/.ollama
  5. container_name: ollama
  6. pull_policy: always
  7. tty: true
  8. restart: unless-stopped
  9. image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
  10. open-webui:
  11. build:
  12. context: .
  13. args:
  14. OLLAMA_BASE_URL: '/ollama'
  15. dockerfile: Dockerfile
  16. image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
  17. container_name: open-webui
  18. volumes:
  19. - open-webui:/app/backend/data
  20. depends_on:
  21. - ollama
  22. ports:
  23. - ${OPEN_WEBUI_PORT-3000}:8080
  24. environment:
  25. - 'OLLAMA_BASE_URL=http://ollama:11434'
  26. - 'WEBUI_SECRET_KEY='
  27. extra_hosts:
  28. - host.docker.internal:host-gateway
  29. restart: unless-stopped
  30. volumes:
  31. ollama: {}
  32. open-webui: {}