Spaces:
Sleeping
Sleeping
File size: 1,386 Bytes
5acd81f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# docker-compose.yml
version: '3.8'
services:
pdf-summarizer-api:
build: .
ports:
- "7860:7860"
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- MCP_SERVER_URL=http://mcp-server:8080
- REDIS_URL=redis://redis:6379
volumes:
- ./uploads:/app/uploads
- ./summaries:/app/summaries
- ./embeddings:/app/embeddings
depends_on:
- redis
- mcp-server
mcp-server:
image: anthropic/mcp-server:latest
ports:
- "8080:8080"
environment:
- MODEL_CONFIG_PATH=/app/config/models.json
volumes:
- ./mcp-config:/app/config
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./frontend:/usr/share/nginx/html
- ./ssl:/etc/nginx/ssl
depends_on:
- pdf-summarizer-api
worker:
build: .
command: celery -A main.celery worker --loglevel=info
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- REDIS_URL=redis://redis:6379
volumes:
- ./uploads:/app/uploads
- ./summaries:/app/summaries
- ./embeddings:/app/embeddings
depends_on:
- redis
volumes:
redis_data:
|