Refactor Docker installation instructions in README for enhanced clarity

- Separate GPU support and API exposure instructions into distinct sections
- Improve readability and user guidance for Docker Compose setup
This commit is contained in:
Ignasi Cervero 2023-12-24 12:23:16 +01:00
parent bd722e39bb
commit 9395b4a1dc
1 changed files with 11 additions and 6 deletions

View File

@ -80,12 +80,17 @@ docker compose up -d --build
```
This command will install both Ollama and Ollama Web UI on your system.
Enable GPU support or Exposing Ollama API outside the container stack with the following command:
#### Enable GPU
Use the additional Docker Compose file designed to enable GPU support by running the following command:
```bash
docker compose -f docker-compose.yml \
-f docker-compose.gpu.yml \
-f docker-compose.api.yml \
up -d --build
docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d --build
```
#### Expose Ollama API outside the container stack
Deploy the service with an additional Docker Compose file designed for API exposure:
```bash
docker compose -f docker-compose.yml -f docker-compose.api.yml up -d --build
```
### Installing Ollama Web UI Only