yeonghoon.kim

  • 게시판
  • 갤러리

ollama-chatbot 테스트 메모

김영훈 2026.01.27 14:28 조회 수 : 357

0011-ollama-chatbot 작업.

Ollama + Open WebUI 테스트용.

로컬 테스트까지만 하고 개발 중지한 프로젝트.

 

 

# docker/docker-compose.local.yml

services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    restart: unless-stopped
    ports:
      - "3000:8080"
    environment:
      - TZ=Asia/Seoul
      - OLLAMA_BASE_URLS=${OLLAMA_LIGHT_URL};${OLLAMA_CODE_URL}
      - RAG_EMBEDDING_MODEL=${RAG_EMBEDDING_MODEL:-nomic-embed-text}
      - CHROMA_HTTP_HOST=chromadb
      - CHROMA_HTTP_PORT=8000
      - WEBUI_AUTH=true
    volumes:
      - open-webui-data:/app/backend/data
    extra_hosts:
      - "host.docker.internal:host-gateway"
    depends_on:
      - chromadb
    networks:
      - internal

  chromadb:
    image: chromadb/chroma:latest
    container_name: chromadb
    restart: unless-stopped
    environment:
      - TZ=Asia/Seoul
      - ANONYMIZED_TELEMETRY=false
    volumes:
      - chromadb-data:/chroma/chroma
    networks:
      - internal

volumes:
  open-webui-data:
  chromadb-data:

networks:
  internal:
    driver: bridge

 


# ansible/playbook.yml

- name: Install Ollama on Ubuntu
  hosts: all
  become: true
  vars_files:
    - vars/main.yml

  tasks:
    - name: Check if Ollama is installed
      ansible.builtin.command: which ollama
      register: ollama_check
      ignore_errors: true
      changed_when: false

    - name: Download and install Ollama
      ansible.builtin.shell: |
        curl -fsSL https://ollama.com/install.sh | sh
      when: ollama_check.rc != 0
      args:
        creates: /usr/local/bin/ollama

    - name: Configure Ollama to listen on all interfaces
      ansible.builtin.copy:
        dest: /etc/systemd/system/ollama.service.d/override.conf
        content: |
          [Service]
          Environment="OLLAMA_HOST={{ ollama_host }}:{{ ollama_port }}"
        mode: '0644'
      notify: Restart ollama

    - name: Enable and start Ollama service
      ansible.builtin.systemd:
        name: ollama
        enabled: true
        state: started

    - name: Pull Ollama models
      ansible.builtin.command: "ollama pull {{ item }}"
      loop: "{{ ollama_models }}"
      register: model_pull
      changed_when: "'pulling' in model_pull.stdout"
      when: ollama_models is defined

 


# ansible/vars/main.yml

vm1_ip: "192.168.x.x"
vm2_ip: "192.168.x.x"

ssh_user: "ioniere"

ollama_host: "0.0.0.0"
ollama_port: 11434

 

 

VM1은 qwen2.5:3b 같은 가벼운 모델용.

VM2는 qwen2.5-coder:7b 같은 코딩 모델용.

Open WebUI에서 Ollama 서버 2개를 붙여보려던 테스트.

 


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 4120
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 3766
37 [바이브코딩 - 클로드] kospiAlarm 작업 메모 김영훈 2025.10.29 111
36 infra-base 기본 서버 설정 메모 김영훈 2026.01.20 172
35 임시 파킹 페이지 김영훈 2026.01.20 309
34 monitoring 설정 김영훈 2026.01.23 133
» ollama-chatbot 테스트 메모 김영훈 2026.01.27 357
32 OpenVPN 구축 김영훈 2026.01.28 147
31 GitLab CI/CD 테스트 김영훈 2026.01.28 217
30 Traefik 설정 김영훈 2026.01.28 354
29 openclaw 구축 작업 노트 [2] 김영훈 2026.02.01 343
28 smtp-relay 설정 김영훈 2026.02.06 196
27 WAF honeypot 설정 김영훈 2026.02.07 106
26 OpenClaw cron regression 대응 김영훈 2026.02.08 187
25 DGX Ollama 구축 김영훈 2026.02.11 185
24 원격 LLM 챗봇 테스트 김영훈 2026.02.11 142
23 Docker Ollama 트러블슈팅 김영훈 2026.02.11 129
22 GPU 모니터링 대시보드 구축 김영훈 2026.02.11 151
21 DGX Spark LLM 벤치마크 김영훈 2026.02.11 135
20 LLM 모델 선정 김영훈 2026.02.12 142
19 OpenClaw 모델 삭제 사고 김영훈 2026.02.13 116
18 ARM Kubernetes 구축 2 - VM 생성과 클러스터 설치 김영훈 2026.02.14 141
쓰기 태그
 첫 페이지 7 8 9 10 11 12 13 14 15 16 끝 페이지