docker-compose.yaml 724 B

1234567891011121314151617181920212223242526272829303132
  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. dockerfile: Dockerfile
  14. image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
  15. container_name: open-webui
  16. volumes:
  17. - open-webui:/app/backend/data
  18. depends_on:
  19. - ollama
  20. ports:
  21. - ${OPEN_WEBUI_PORT-3000}:8080
  22. environment:
  23. - 'OLLAMA_BASE_URL=http://ollama:11434'
  24. - 'WEBUI_SECRET_KEY='
  25. extra_hosts:
  26. - host.docker.internal:host-gateway
  27. restart: unless-stopped
  28. volumes:
  29. ollama: {}
  30. open-webui: {}