Docker Configuration Guide
The application can be run with different configurations using Docker Compose:
docker-compose.yml
: Core applicationdocker/ollama/compose.yml
: Ollama service for local LLM inferencedocker/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:
MODEL=llama3.2:1b
Setup Options
Full Setup (App + Ollama + Argilla)
# 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
# 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
# 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
# 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:
- You don't need to rebuild existing services
- Just build the new service
- Stop everything with
down
and start again withup
For example, if you have App + Ollama and want to add Argilla:
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
# 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