Skip to content

Instantly share code, notes, and snippets.

@MicahZoltu
Created September 6, 2025 14:38
Show Gist options
  • Select an option

  • Save MicahZoltu/ad8ca8d4265119d1b6d3e05c12acb721 to your computer and use it in GitHub Desktop.

Select an option

Save MicahZoltu/ad8ca8d4265119d1b6d3e05c12acb721 to your computer and use it in GitHub Desktop.
Starter Local AI
name: 'local-ai'
services:
openwebui:
image: 'ghcr.io/open-webui/open-webui'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ports:
- target: '8080'
published: '8080'
protocol: 'tcp'
volumes:
- type: 'volume'
source: 'open-webui'
target: '/app/backend/data'
environment:
WEBUI_AUTH: 'False'
BYPASS_MODEL_ACCESS_CONTROL: 'True'
OLLAMA_BASE_URL: 'http://ollama:11434'
DEFAULT_MODELS: 'qwen3:8b'
OFFLINE_MODE: 'true'
ollama:
image: 'ollama/ollama'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
- type: 'volume'
source: 'ollama'
target: '/root/.ollama'
environment:
OLLAMA_KEEP_ALIVE: '30m'
OLLAMA_CONTEXT_LENGTH: '32768'
volumes:
open-webui:
ollama:
name: 'local-ai'
services:
openwebui:
image: 'ghcr.io/open-webui/open-webui:cuda'
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ports:
- target: '8080'
published: '8080'
protocol: 'tcp'
volumes:
- type: 'volume'
source: 'open-webui'
target: '/app/backend/data'
environment:
USE_CUDA_DOCKER: 'True'
WEBUI_AUTH: 'False'
BYPASS_MODEL_ACCESS_CONTROL: 'True'
OLLAMA_BASE_URL: 'http://ollama:11434'
DEFAULT_MODELS: 'qwen3:8b'
OFFLINE_MODE: 'true'
ollama:
image: 'ollama/ollama'
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
- type: 'volume'
source: 'ollama'
target: '/root/.ollama'
environment:
OLLAMA_KEEP_ALIVE: '30m'
OLLAMA_CONTEXT_LENGTH: '32768'
volumes:
open-webui:
ollama:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment