Spaces:
Running
Running
File size: 1,026 Bytes
83b4232 ee966d6 83b4232 ee966d6 83b4232 ee966d6 83b4232 ee966d6 83b4232 ee966d6 83b4232 ee966d6 83b4232 ee966d6 83b4232 | 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 | # docker-compose.yml
version: '3.8'
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: assistantWed_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:alpine
volumes:
- redis_data:/data
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "8000:8000"
volumes:
- ./data:/app/data
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=postgresql://postgres:postgres@postgres/assistantWed_db
- SENTENCE_TRANSFORMERS_HOME=/app/data/.cache
- TRANSFORMERS_CACHE=/app/data/.cache
- LLM_PROVIDER
- GROQ_API_KEY
- OPENAI_API_KEY
- GOOGLE_API_KEY
depends_on:
- postgres
- redis
frontend:
build:
context: ./frontend
ports:
- "5173:80"
depends_on:
- backend
volumes:
postgres_data:
redis_data:
|