yeonghoon.kim

  • 게시판
  • 갤러리

ollama-chatbot 테스트 메모

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

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 4119
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 3752
297 DGX Spark LLM 벤치마크 김영훈 2026.02.11 132
296 GPU 모니터링 대시보드 구축 김영훈 2026.02.11 150
295 Docker Ollama 트러블슈팅 김영훈 2026.02.11 128
294 원격 LLM 챗봇 테스트 김영훈 2026.02.11 140
293 DGX Ollama 구축 김영훈 2026.02.11 183
292 OpenClaw cron regression 대응 김영훈 2026.02.08 186
291 WAF honeypot 설정 김영훈 2026.02.07 104
290 smtp-relay 설정 김영훈 2026.02.06 195
289 openclaw 구축 작업 노트 [2] 김영훈 2026.02.01 341
288 Traefik 설정 김영훈 2026.01.28 353
287 GitLab CI/CD 테스트 김영훈 2026.01.28 216
286 OpenVPN 구축 김영훈 2026.01.28 143
» ollama-chatbot 테스트 메모 김영훈 2026.01.27 355
284 monitoring 설정 김영훈 2026.01.23 130
283 임시 파킹 페이지 김영훈 2026.01.20 308
282 infra-base 기본 서버 설정 메모 김영훈 2026.01.20 171
281 [바이브코딩 - 클로드] kospiAlarm 작업 메모 김영훈 2025.10.29 109
280 [바이브코딩 - 클로드] fullstack_template 작업 메모 김영훈 2025.10.18 243
279 [바이브코딩 - 클로드] reminder_android 작업 메모 김영훈 2025.10.17 85
278 [바이브코딩 - 클로드] bingbingsubway 작업 메모 김영훈 2025.10.12 165
쓰기 태그
 첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지