version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" environment: - LLM_API_KEY=${LLM_API_KEY} - LLM_BASE_URL=${LLM_BASE_URL:-https://api.groq.com/openai/v1} - LLM_MODEL=${LLM_MODEL:-llama-3.1-8b-instant} - REDIS_URL=redis://redis:6379/0 - DATABASE_URL=postgresql://postgres:postgres@db:5432/scanleni depends_on: - redis - db volumes: - ./backend/app:/app/app:ro restart: unless-stopped frontend: image: node:20-alpine working_dir: /app volumes: - ./frontend:/app ports: - "3000:3000" command: sh -c "npm install && npm run dev -- --host" depends_on: - backend restart: unless-stopped redis: image: redis:7-alpine ports: - "6379:6379" volumes: - redis_data:/data command: redis-server --appendonly yes restart: unless-stopped db: image: pgvector/pgvector:pg16 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: scanleni ports: - "5432:5432" volumes: - pg_data:/var/lib/postgresql/data restart: unless-stopped volumes: redis_data: pg_data: