Zack Saadioui
8/27/2024
1
docker swarm init
1
docker-compose.yml
open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui volumes:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
- 11434:11434 - 53:53 volumes: - ollama:/root/.ollama environment: - "OLLAMA_HOST=0.0.0.0" - "OLLAMA_ORIGINS=http://localhost,https://localhost,http://127.0.0.1,https://127.0.0.1,http://0.0.0.0,https://0.0.0.0" deploy: placement: constraints: - node.hostname == YOUR_NODE_NAME # Change needed resources: reservations: generic_resources: - discrete_resource_spec: kind: "NVIDIA-GPU" value: 2 # Change needed
1
ollama
1
open-webui
1
watchtower
1
docker-compose.yml
1
2
bash
docker stack deploy -c docker-compose.yml ollama_stack
1
docker stack deploy
1
2
bash
docker service ls
1
2
bash
docker service logs <service_name>
1
docker-compose.yml
1
2
bash
docker service logs ollama
1
nvidia-container-runtime
Copyright © Arsturn 2025