File size: 2,673 Bytes
4691368 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# Docker Configuration Guide
The application can be run with different configurations using Docker Compose:
- `docker-compose.yml`: Core application
- `docker/ollama/compose.yml`: Ollama service for local LLM inference
- `docker/argilla/compose.yml`: Argilla service for data curation
## Ollama Integration
The `MODEL` variable in your `.env` file determines which model Ollama will download and use. For example:
```env
MODEL=llama3.2:1b
```
## Setup Options
### Full Setup (App + Ollama + Argilla)
```bash
# Keep all sections uncommented in .env
docker compose -f docker-compose.yml -f docker/ollama/compose.yml -f docker/argilla/compose.yml build
docker compose -f docker-compose.yml -f docker/ollama/compose.yml -f docker/argilla/compose.yml up -d
```
### App + Ollama
```bash
# Comment out ARGILLA section in .env
docker compose -f docker-compose.yml -f docker/ollama/compose.yml build
docker compose -f docker-compose.yml -f docker/ollama/compose.yml up -d
```
### App + Argilla
```bash
# Comment out OLLAMA section in .env
docker compose -f docker-compose.yml -f docker/argilla/compose.yml build
docker compose -f docker-compose.yml -f docker/argilla/compose.yml up -d
```
### App Only
```bash
# Comment out both OLLAMA and ARGILLA sections in .env
docker compose -f docker-compose.yml build
docker compose -f docker-compose.yml up -d
```
## Managing Services
Services are built separately but are linked together. If you already have some services built and want to add another:
1. You don't need to rebuild existing services
2. Just build the new service
3. Stop everything with `down` and start again with `up`
For example, if you have App + Ollama and want to add Argilla:
```bash
docker compose -f docker/argilla/compose.yml build # only build Argilla
docker compose -f docker-compose.yml -f docker/ollama/compose.yml -f docker/argilla/compose.yml down
docker compose -f docker-compose.yml -f docker/ollama/compose.yml -f docker/argilla/compose.yml up -d
```
Similarly, if you have built all services but want to run only some of them:
> **Important**: When running specific services, remember to comment out unused services in `.env` first
```bash
# No need to build again, just start the services you need
docker compose -f docker-compose.yml -f docker/ollama/compose.yml up -d # start only App + Ollama
```
## Service URLs
Once running, access the services at:
- App: http://localhost:7860
- Argilla: http://localhost:6900 (if enabled)
- Ollama: http://localhost:11434 (if enabled)
> Note: Services will be available after a few seconds while they initialize. Ollama models and Argilla datasets are persisted and available after restarts |