Assistant-Web-Educatif / docker-compose.yml
hamba-ho's picture
Mise à jour services backend et ajout streamlit_app
ee966d6
# 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: