ig-v1 / docker-compose.yml
harshith99's picture
Hardening: multi-user safety, rename to places, geocoder cache, robust chatbot
5b573cc
Raw
History Blame Contribute Delete
1.15 kB
services:
ollama:
image: ollama/ollama:latest
volumes:
- ollama_data:/root/.ollama
# Uncomment for NVIDIA GPU support:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:11434/api/tags"]
interval: 10s
timeout: 5s
retries: 15
start_period: 30s
app:
build: .
ports:
- "8000:8000"
environment:
OLLAMA_URL: http://ollama:11434
OLLAMA_ENABLED: "true"
JOB_TTL_HOURS: "24" # delete each upload's job dir after N hours
# Personal/local use geocodes against public OSM Nominatim (fine for one user).
# For a MULTI-USER hosted deploy, OSM forbids bulk use — run your own geocoder
# and uncomment these (plus a nominatim/photon service):
# HOSTED: "1"
# NOMINATIM_URL: http://nominatim:8080
volumes:
- ./jobs:/app/jobs
- ./data:/app/data
depends_on:
ollama:
condition: service_healthy
volumes:
ollama_data: