# Self-host Ollama: Mistral 7B

> Mistral's 7B instruct model, served locally through Ollama's HTTP API.

- Page: https://levelrail.com/templates/ollama-mistral/
- JSON: https://levelrail.com/templates/ollama-mistral.json
- Category: AI
- Licence: MIT (Permissive license)
- Source: https://github.com/ollama/ollama
- Upstream docs: https://ollama.com/library/mistral

## Requirements
- Memory: about 6 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 0.33.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| ollama | ollama/ollama | 0.33.3 | 11434 | ollama_data -> /root/.ollama |

## Deploy

### CLI

```bash
levelrail-cli templates deploy ollama-mistral --name my-ollama-mistral
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/ollama-mistral/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Ollama: Mistral 7B on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Ollama: Mistral 7B, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ollama/ollama:0.33.3 is what you deploy there.

Self-host Ollama: Mistral 7B, Ollama: Mistral 7B docker compose file, deploy Ollama: Mistral 7B on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
