"backend/vscode:/vscode.git/clone" did not exist on "fa9593b4e825679d6192ff06c52c7087d251f8c8"
docker-compose.yaml 658 Bytes
Newer Older
Daniele Viti's avatar
Daniele Viti committed
1
version: '3.8'
Timothy J. Baek's avatar
Timothy J. Baek committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

services:
  ollama:
    volumes:
      - ollama:/root/.ollama
    container_name: ollama
    pull_policy: always
    tty: true
    restart: unless-stopped
    image: ollama/ollama:latest

  ollama-webui:
    build:
      context: .
      args:
17
        OLLAMA_API_BASE_URL: '/ollama/api'
Timothy J. Baek's avatar
Timothy J. Baek committed
18
19
20
      dockerfile: Dockerfile
    image: ollama-webui:latest
    container_name: ollama-webui
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:
Daniele Viti's avatar
Daniele Viti committed
24
      - ${OLLAMA_WEBUI_PORT-3000}:8080
Timothy J. Baek's avatar
Timothy J. Baek committed
25
26
    environment:
      - "OLLAMA_API_BASE_URL=http://ollama:11434/api"
27
    extra_hosts:
Timothy J. Baek's avatar
Timothy J. Baek committed
28
      - host.docker.internal:host-gateway
29
    restart: unless-stopped
Timothy J. Baek's avatar
Timothy J. Baek committed
30
31
32

volumes:
  ollama: {}