1
0
Fork 0
local-llm/docker-compose.amd.yml

32 lines
622 B
YAML
Raw Normal View History

2024-02-08 03:40:43 +00:00
include:
- docker-compose.base.yml
services:
# Begin Ollama service
ollama:
2024-03-28 18:00:29 +00:00
image: ollama/ollama:rocm
2024-02-08 03:40:43 +00:00
restart: unless-stopped
2024-11-13 04:27:20 +00:00
ports:
- 11434:11434
2024-02-08 03:40:43 +00:00
# begin for AMD GPU support
devices:
- /dev/kfd
- /dev/dri
group_add:
- video
ipc: host
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
2024-11-13 04:27:20 +00:00
# environment:
# # https://github.com/ROCm/ROCm/issues/2788#issuecomment-1915765846
# HSA_OVERRIDE_GFX_VERSION: 11.0.0
2024-02-08 03:40:43 +00:00
# end of section for AMD GPU support
2024-11-13 04:27:20 +00:00
2024-02-08 03:40:43 +00:00
volumes:
2024-11-13 04:27:20 +00:00
- ollama_data:/root/.ollama
volumes:
ollama_data: