docker-compose.yaml 1.14 KB
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
Robin Kroonen's avatar
Robin Kroonen committed
17
    image: ghcr.io/open-webui/open-webui:dev
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='
Robin Kroonen's avatar
Robin Kroonen committed
28
29
30
      - 'OPENAI_API_KEY=${OPENAI_API_KEY}'
      - 'LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}'
      - 'LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}'
31
    extra_hosts:
Timothy J. Baek's avatar
Timothy J. Baek committed
32
      - host.docker.internal:host-gateway
33
    restart: unless-stopped
Timothy J. Baek's avatar
Timothy J. Baek committed
34

Robin Kroonen's avatar
Robin Kroonen committed
35
36
37
38
39
40
41
42
43
44
  watchtower:
    container_name: watchtower
    image: containrrr/watchtower:latest
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_POLL_INTERVAL=1800

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