docker-compose.yaml 771 Bytes
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
3
4
5
6
7
8
services:
  ollama:
    volumes:
      - ollama:/root/.ollama
    container_name: ollama
    pull_policy: always
    tty: true
    restart: unless-stopped
Justin Hayes's avatar
Justin Hayes committed
9
    image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
Timothy J. Baek's avatar
Timothy J. Baek committed
10

Timothy J. Baek's avatar
Timothy J. Baek committed
11
  open-webui:
Timothy J. Baek's avatar
Timothy J. Baek committed
12
13
14
    build:
      context: .
      args:
15
        OLLAMA_BASE_URL: '/ollama'
Timothy J. Baek's avatar
Timothy J. Baek committed
16
      dockerfile: Dockerfile
Justin Hayes's avatar
Justin Hayes committed
17
    image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
Timothy J. Baek's avatar
Timothy J. Baek committed
18
    container_name: open-webui
19
    volumes:
Timothy J. Baek's avatar
Timothy J. Baek committed
20
      - open-webui:/app/backend/data
Timothy J. Baek's avatar
Timothy J. Baek committed
21
22
    depends_on:
      - ollama
Timothy J. Baek's avatar
Timothy J. Baek committed
23
    ports:
24
      - ${OPEN_WEBUI_PORT-3000}:8080
Timothy J. Baek's avatar
Timothy J. Baek committed
25
    environment:
26
      - 'OLLAMA_BASE_URL=http://ollama:11434'
27
      - 'WEBUI_SECRET_KEY='
28
    extra_hosts:
Timothy J. Baek's avatar
Timothy J. Baek committed
29
      - host.docker.internal:host-gateway
30
    restart: unless-stopped
Timothy J. Baek's avatar
Timothy J. Baek committed
31
32
33

volumes:
  ollama: {}
Timothy J. Baek's avatar
Timothy J. Baek committed
34
  open-webui: {}