b3beb525ad
- Remove Ollama service from docker-compose.yml (now external/remote)
- Remove ollama_data volume and network configuration
- Simplify compose to only llm-monitor service
- Use env_file for all configuration from .env
- Make API_PORT dynamic with ${API_PORT:-8000}
- Update env.example with Ollama remote server examples:
- Local development: http://localhost:11434
- Remote server: http://ollama.example.com:11434
- Remote with SSL: https://ollama.example.com
- Improve documentation for remote Ollama setup
This allows deployment against any Ollama server (local or remote).
30 lines
736 B
YAML
30 lines
736 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# LLM Monitor Dashboard
|
|
llm-monitor:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: llm-monitor-app
|
|
ports:
|
|
- "${API_PORT:-8000}:${API_PORT:-8000}"
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
stdin_open: true
|
|
tty: true
|
|
# Health check
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:${API_PORT:-8000}/api/v1/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
# Istruzioni di avvio:
|
|
# docker compose up -d # Avvia i servizi
|
|
# docker compose logs -f # Visualizza i log
|
|
# docker compose down # Ferma i servizi
|
|
# docker compose restart # Riavvia i servizi
|