|
| 1 | +services: |
| 2 | + core_backend: |
| 3 | + image: idinsight/aaq-backend:latest |
| 4 | + build: |
| 5 | + context: ../../core_backend |
| 6 | + dockerfile: Dockerfile.dev |
| 7 | + command: > |
| 8 | + /bin/sh -c " |
| 9 | + python -m alembic upgrade head && |
| 10 | + python main.py" |
| 11 | + restart: always |
| 12 | + volumes: |
| 13 | + - ../../core_backend:/usr/src/aaq_backend |
| 14 | + - temp:/usr/src/aaq_backend/temp |
| 15 | + - ./.gcp_credentials.json:/app/credentials.json |
| 16 | + env_file: |
| 17 | + - .base.env |
| 18 | + - .core_backend.env |
| 19 | + - .litellm_proxy.env |
| 20 | + environment: |
| 21 | + - REDIS_HOST=redis://redis:6379 |
| 22 | + - LITELLM_ENDPOINT=http://litellm_proxy:4000 |
| 23 | + - POSTGRES_HOST=relational_db |
| 24 | + depends_on: |
| 25 | + - redis |
| 26 | + - relational_db |
| 27 | + |
| 28 | + admin_app: |
| 29 | + image: idinsight/aaq-admin-app:latest |
| 30 | + build: |
| 31 | + context: ../../admin_app |
| 32 | + dockerfile: Dockerfile.dev |
| 33 | + volumes: |
| 34 | + - ../../admin_app:/app |
| 35 | + depends_on: |
| 36 | + - core_backend |
| 37 | + restart: always |
| 38 | + env_file: |
| 39 | + - .base.env |
| 40 | + |
| 41 | + caddy: |
| 42 | + image: caddy:2.7.6 |
| 43 | + restart: unless-stopped |
| 44 | + ports: |
| 45 | + - "80:80" |
| 46 | + - "443:443" |
| 47 | + - "443:443/udp" |
| 48 | + volumes: |
| 49 | + - ./Caddyfile:/etc/caddy/Caddyfile |
| 50 | + - caddy_data:/data |
| 51 | + - caddy_config:/config |
| 52 | + env_file: |
| 53 | + - .base.env |
| 54 | + |
| 55 | + litellm_proxy: |
| 56 | + image: ghcr.io/berriai/litellm:main-v1.40.10 |
| 57 | + restart: always |
| 58 | + env_file: |
| 59 | + - .litellm_proxy.env |
| 60 | + volumes: |
| 61 | + - ./litellm_proxy_config.yaml:/app/config.yaml |
| 62 | + - ./.gcp_credentials.json:/app/credentials.json |
| 63 | + ports: # Expose the port to port 4001 for debugging purposes |
| 64 | + - 4001:4000 |
| 65 | + command: ["--config", "/app/config.yaml", "--port", "4000", "--num_workers", "4"] |
| 66 | + |
| 67 | + huggingface-embeddings: |
| 68 | + # image either refers to locally built image or defaults to the one from the registry |
| 69 | + image: ${EMBEDDINGS_IMAGE_NAME:-ghcr.io/huggingface/text-embeddings-inference:cpu-1.5} |
| 70 | + profiles: |
| 71 | + - huggingface-embeddings |
| 72 | + - optional-components |
| 73 | + volumes: |
| 74 | + - $PWD/data:/data |
| 75 | + command: |
| 76 | + [ |
| 77 | + "--model-id", |
| 78 | + "${HUGGINGFACE_MODEL}", |
| 79 | + "--api-key", |
| 80 | + "${HUGGINGFACE_EMBEDDINGS_API_KEY}", |
| 81 | + ] |
| 82 | + restart: always |
| 83 | + env_file: |
| 84 | + - .litellm_proxy.env |
| 85 | + |
| 86 | + redis: |
| 87 | + image: "redis:6.0-alpine" |
| 88 | + ports: # Expose the port to port 6380 on the host machine for debugging |
| 89 | + - "6380:6379" |
| 90 | + restart: always |
| 91 | + |
| 92 | + relational_db: |
| 93 | + image: pgvector/pgvector:pg16 |
| 94 | + restart: always |
| 95 | + env_file: |
| 96 | + - .core_backend.env |
| 97 | + volumes: |
| 98 | + - db_volume:/var/lib/postgresql/data |
| 99 | + ports: # Expose the port to port 5434 on the host machine for debugging |
| 100 | + - 5434:5432 |
| 101 | + |
| 102 | +volumes: |
| 103 | + caddy_data: |
| 104 | + caddy_config: |
| 105 | + temp: |
| 106 | + db_volume: |
0 commit comments