docker-compose.yaml 787 B

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