Skip to content

Instantly share code, notes, and snippets.

@felipemarinho97
Created July 25, 2024 15:15
Show Gist options
  • Save felipemarinho97/77fd811ce77f3003761f4f1bfd7bff5a to your computer and use it in GitHub Desktop.
Save felipemarinho97/77fd811ce77f3003761f4f1bfd7bff5a to your computer and use it in GitHub Desktop.
version: '3.8'
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:rocm
devices:
- /dev/dri:/dev/dri
- /dev/kfd:/dev/kfd
group_add:
- video
stdin_open: true
ipc: host
privileged: true
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
environment:
- 'HSA_OVERRIDE_GFX_VERSION=9.0.0'
- 'HCC_AMDGPU_TARGETS=gfx900'
ports:
- 11434:11434
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
volumes:
- open-webui:/app/backend/data
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY=bomdiaprincesa'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
ollama: {}
open-webui: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment