2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

これで動く Mac + Docker + Ollama + OpenWebUI

Last updated at Posted at 2026-01-29

これで動く Mac + Docker + Ollama + OpenWebUI

docker-compose.yaml
services:
  ollama:
    image: ollama/ollama
    container_name: ollama
    ports:
      - "11434:11434"
    volumes:
      - ./ollama:/root/.ollama
    restart: always
    environment:
      - OLLAMA_KEEP_ALIVE=24h
      - OLLAMA_NUM_PARALLEL=2

  ollama-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: ollama-webui
    restart: unless-stopped
    ports:
      - "8080:8080"
    extra_hosts: 
      - "host.docker.internal:host-gateway"
    depends_on:
      - ollama
    volumes:
      - ./ollama-webui:/app/backend/data
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434

volumes:
  ollama:
  ollama-webui:

そんで 下記を実行で動きます。

docker-compose up -d

ただし、Macの場合、DockerのコンテナでOllamaを動かした場合、
GPUが使われず、CPUで動くので、重い遅いです。

MacでGPUを利用したい場合は、Native版のOllamaが有るので、
それを利用すればGPUを使ってくれるらしいです。

ぜひ試して見てください。

下記に、Native版のOllamaを使った場合の記事を書いておきました。
https://www.kixking.xyz/2026/01/macollama-openwebui-docker-composegpu.html

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?