A modern Vaadin-based web UI for interacting with Ollama, built using Java, Spring Boot, and ollama4j.
- Simple and intuitive user interface.
- Direct integration with the Ollama API via ollama4j.
- Supports large request payloads (up to 50 MB).
- Easily configurable and deployable as a Docker container.
- Java 21
- Docker (optional, recommended for production deployments)
mvn clean install
mvn clean spring-boot:run
mvn -Drevision=0.0.1 clean package -Pproduction
docker build -t gkrost/ollama4j-web-ui:0.0.1 .
docker run -it -p 9090:8080 -e OLLAMA_HOST_ADDR='http://192.168.29.223:11434' gkrost/ollama4j-web-ui:0.0.1
You can configure the application using environment variables:
Environment Variable | Default Value | Description |
---|---|---|
SERVER_PORT |
9090 |
Port on which the server runs |
OLLAMA_HOST_ADDR |
http://localhost:11434 |
URL for connecting to Ollama server |
- The default browser automatically opens when running in development mode.
- Allowed Vaadin packages are configured to speed up development.
Contributions, feedback, and pull requests are always welcome!
This project is licensed under the MIT License. See LICENSE for details.