Skip to content

Instantly share code, notes, and snippets.

@MParvin
Created February 12, 2026 13:52
Show Gist options
  • Select an option

  • Save MParvin/69860cc56bb8f1cb31c0307a6f166bf3 to your computer and use it in GitHub Desktop.

Select an option

Save MParvin/69860cc56bb8f1cb31c0307a6f166bf3 to your computer and use it in GitHub Desktop.
AI-Stack
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
ports:
- "11434:11434"
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment:
- OLLAMA_NUM_GPU=1
- OLLAMA_NUM_THREADS=8
- OLLAMA_MAX_RAM=20GB
volumes:
- ./ollama-data:/root/.ollama
- ./scripts:/scripts
open-webui:
image: ghcr.io/open-webui/open-webui:0.3.32
container_name: open-webui
restart: unless-stopped
ports:
- "3000:8080"
environment:
- OLLAMA_BASE_URL=http://ollama:11434
volumes:
- ./open-webui-data:/app/backend/data
depends_on:
- ollama
vscodium:
image: lscr.io/linuxserver/vscodium:latest
container_name: vscodium
restart: unless-stopped
cap_add:
- IPC_LOCK
ports:
- "3098:3000"
- "3099:3001"
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./vscodium-data:/config
- ~/.codes:/codes
shm_size: 1gb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment