services: backend: build: ./backend ports: - "8000:8000" environment: - OPENAI_API_KEY=${OPENAI_API_KEY} - DOCUMENTS_DIR=/documents - VECTORSTORE_DIR=/app/vectorstore volumes: - ./documents:/documents:ro - vectorstore_data:/app/vectorstore healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 10s timeout: 5s retries: 5 start_period: 30s cli: build: ./frontend environment: - API_URL=http://backend:8000 depends_on: backend: condition: service_healthy stdin_open: true tty: true profiles: - cli volumes: vectorstore_data: