Skip to content

Instantly share code, notes, and snippets.

@FrancoStino
Created July 4, 2024 12:24
Show Gist options
  • Save FrancoStino/c3f59fe50aca6d0d7c996bbe9faf7551 to your computer and use it in GitHub Desktop.
Save FrancoStino/c3f59fe50aca6d0d7c996bbe9faf7551 to your computer and use it in GitHub Desktop.
This code snippet is a configuration file that sets up services for an Ollama application. It specifies the image, container name, ports, volumes, and restarts when running or not. The open-webui service uses Docker API to create

Ollama and Open-WebUI Services

Preview:
version: '3.8'

services:
  ollama:
    image: ollama/ollama
    container_name: ollama
    ports:
      - '11434:11434'
    volumes:
      - /home/ollama:/root/.ollama
    restart: unless-stopped

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    ports:
      - '8282:8080'
    extra_hosts:
      - 'host.docker.internal:host-gateway'
    volumes:
      - open-webui:/app/backend/data

    restart: unless-stopped

volumes:
  open-webui:
Associated Context
Type Code Snippet ( .yaml )
Associated Tags Version 3 8 Ollama Image Container Name Ports Volumes Restart Open WebUI Docker Internal Host Gateway Cloud Backend Data
💡 Smart Description This code snippet is a configuration file that sets up services for an Ollama application. It specifies the image, container name, ports, volumes, and restarts when running or not. The open-webui service uses Docker API to create
🔎 Suggested Searches Kubernetes services for ollama and open-webui
Related Links https://www.geeksforgeeks.org/
https://www.geeksforgeeks.org/data-structures/linked-list/
https://kubernetes.io/docs/concepts/services-networking/service/
https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
Related People Davide Ladisa
Sensitive Information No Sensitive Information Detected
Shareable Link https://davideladisa.pieces.cloud/?p=6499458a42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment