version: "3.9" services: api: build: . command: uvicorn main:app --host 0.0.0.0 --port 8010 volumes: - ./workspace:/opt/workspace - ./cache:/root/.cache/ ports: - "8010:8010" depends_on: - redis networks: - rag_data_network worker: build: . volumes: - ./workspace:/opt/workspace - ./cache:/root/.cache/ command: python3 worker.py depends_on: - redis networks: - rag_data_network redis: volumes: - ./workspace:/opt/workspace - ./cache:/root/.cache/ image: redis:6 ports: - "6379:6379" networks: - rag_data_network rq-dashboard: volumes: - ./workspace:/opt/workspace - ./cache:/root/.cache/ image: eoranged/rq-dashboard ports: - "9181:9181" environment: - RQ_DASHBOARD_REDIS_URL=redis://redis:6379 depends_on: - redis networks: - rag_data_network networks: rag_data_network: driver: bridge