runs - review pending

This commit is contained in:
2026-01-27 13:58:54 -05:00
parent c85b877dc0
commit 7d60504e1d
10 changed files with 779 additions and 110 deletions

View File

@@ -14,6 +14,9 @@ services:
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-master_key}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o}
- OLLAMA_URL=http://ollama:11434
- OLLAMA_MODEL=${OLLAMA_MODEL:-gpt-oss:latest}
- USE_OLLAMA=${USE_OLLAMA:-true}
- ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-changeme}
- SESSION_SECRET=${SESSION_SECRET:-changeme}
@@ -25,6 +28,8 @@ services:
condition: service_started
meilisearch:
condition: service_started
ollama:
condition: service_started
volumes:
- ./src:/app/src
- ./migrations:/app/migrations
@@ -33,6 +38,35 @@ services:
networks:
- privacy-analyzer-network
ollama:
image: ollama/ollama:latest
container_name: privacy-analyzer-ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_ORIGINS=*
- OLLAMA_HOST=0.0.0.0
entrypoint: >
sh -c "
ollama serve &
sleep 5
echo 'Pulling ${OLLAMA_MODEL:-gpt-oss:latest} model...'
ollama pull ${OLLAMA_MODEL:-gpt-oss:latest}
echo 'Model ready!'
wait
"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
restart: unless-stopped
networks:
- privacy-analyzer-network
postgres:
image: postgres:15-alpine
container_name: privacy-analyzer-postgres
@@ -86,6 +120,8 @@ volumes:
driver: local
meilisearch_data:
driver: local
ollama_data:
driver: local
networks:
privacy-analyzer-network: