|
| 1 | +version: "3" |
| 2 | +services: |
| 3 | + rabbitmq: |
| 4 | + image: rabbitmq:3.13-management |
| 5 | + hostname: "rabbitmq" |
| 6 | + env_file: |
| 7 | + - .env.docker |
| 8 | + ports: |
| 9 | + - "5672:5672" |
| 10 | + - "15672:15672" |
| 11 | + volumes: |
| 12 | + - rabbitmq:/var/lib/rabbitmq/ |
| 13 | + healthcheck: |
| 14 | + test: rabbitmq-diagnostics -q ping |
| 15 | + interval: 30s |
| 16 | + timeout: 10s |
| 17 | + retries: 5 |
| 18 | + control_plane: |
| 19 | + image: llamaindex_cookbook:latest |
| 20 | + command: sh -c "python -m llamaindex_cookbook.core_services.control_plane" |
| 21 | + env_file: |
| 22 | + - .env.docker |
| 23 | + ports: |
| 24 | + - "8001:8001" |
| 25 | + volumes: |
| 26 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 27 | + - ./logging.ini:/app/logging.ini |
| 28 | + depends_on: |
| 29 | + rabbitmq: |
| 30 | + condition: service_healthy |
| 31 | + platform: linux/amd64 |
| 32 | + build: |
| 33 | + context: . |
| 34 | + dockerfile: ./Dockerfile |
| 35 | + healthcheck: |
| 36 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8001/ || exit 1 |
| 37 | + interval: 30s |
| 38 | + retries: 5 |
| 39 | + start_period: 20s |
| 40 | + timeout: 10s |
| 41 | + funny_agent: |
| 42 | + image: llamaindex_cookbook:latest |
| 43 | + command: sh -c "python -m llamaindex_cookbook.agent_services.funny_agent" |
| 44 | + env_file: |
| 45 | + - .env.docker |
| 46 | + ports: |
| 47 | + - "8002:8002" |
| 48 | + volumes: |
| 49 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 50 | + - ./data:/app/data |
| 51 | + - ./logging.ini:/app/logging.ini |
| 52 | + depends_on: |
| 53 | + rabbitmq: |
| 54 | + condition: service_healthy |
| 55 | + control_plane: |
| 56 | + condition: service_healthy |
| 57 | + platform: linux/amd64 |
| 58 | + build: |
| 59 | + context: . |
| 60 | + dockerfile: ./Dockerfile |
| 61 | + healthcheck: |
| 62 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8002/is_worker_running || exit 1 |
| 63 | + interval: 30s |
| 64 | + retries: 5 |
| 65 | + start_period: 20s |
| 66 | + timeout: 10s |
| 67 | + goods_getter_agent: |
| 68 | + image: llamaindex_cookbook:latest |
| 69 | + command: sh -c "python -m llamaindex_cookbook.agent_services.financial_and_economic_essentials.goods_getter_agent" |
| 70 | + env_file: |
| 71 | + - .env.docker |
| 72 | + ports: |
| 73 | + - "8003:8003" |
| 74 | + volumes: |
| 75 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 76 | + - ./data:/app/data |
| 77 | + - ./logging.ini:/app/logging.ini |
| 78 | + depends_on: |
| 79 | + rabbitmq: |
| 80 | + condition: service_healthy |
| 81 | + control_plane: |
| 82 | + condition: service_healthy |
| 83 | + platform: linux/amd64 |
| 84 | + build: |
| 85 | + context: . |
| 86 | + dockerfile: ./Dockerfile |
| 87 | + healthcheck: |
| 88 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8003/is_worker_running || exit 1 |
| 89 | + interval: 30s |
| 90 | + retries: 5 |
| 91 | + start_period: 20s |
| 92 | + timeout: 10s |
| 93 | + time_series_getter_agent: |
| 94 | + image: llamaindex_cookbook:latest |
| 95 | + command: sh -c "python -m llamaindex_cookbook.agent_services.financial_and_economic_essentials.time_series_getter_agent" |
| 96 | + env_file: |
| 97 | + - .env.docker |
| 98 | + ports: |
| 99 | + - "8004:8004" |
| 100 | + volumes: |
| 101 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 102 | + - ./data:/app/data |
| 103 | + - ./logging.ini:/app/logging.ini |
| 104 | + depends_on: |
| 105 | + rabbitmq: |
| 106 | + condition: service_healthy |
| 107 | + control_plane: |
| 108 | + condition: service_healthy |
| 109 | + platform: linux/amd64 |
| 110 | + build: |
| 111 | + context: . |
| 112 | + dockerfile: ./Dockerfile |
| 113 | + healthcheck: |
| 114 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8004/is_worker_running || exit 1 |
| 115 | + interval: 30s |
| 116 | + retries: 5 |
| 117 | + start_period: 20s |
| 118 | + timeout: 10s |
| 119 | + stats_getter_agent: |
| 120 | + image: llamaindex_cookbook:latest |
| 121 | + command: sh -c "python -m llamaindex_cookbook.agent_services.government_essentials.stats_getter_agent" |
| 122 | + env_file: |
| 123 | + - .env.docker |
| 124 | + ports: |
| 125 | + - "8005:8005" |
| 126 | + volumes: |
| 127 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 128 | + - ./data:/app/data |
| 129 | + - ./logging.ini:/app/logging.ini |
| 130 | + depends_on: |
| 131 | + rabbitmq: |
| 132 | + condition: service_healthy |
| 133 | + control_plane: |
| 134 | + condition: service_healthy |
| 135 | + platform: linux/amd64 |
| 136 | + build: |
| 137 | + context: . |
| 138 | + dockerfile: ./Dockerfile |
| 139 | + healthcheck: |
| 140 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8005/is_worker_running || exit 1 |
| 141 | + interval: 30s |
| 142 | + retries: 5 |
| 143 | + start_period: 20s |
| 144 | + timeout: 10s |
| 145 | + stats_fulfiller_agent: |
| 146 | + image: llamaindex_cookbook:latest |
| 147 | + command: sh -c "python -m llamaindex_cookbook.agent_services.government_essentials.stats_fulfiller_agent" |
| 148 | + env_file: |
| 149 | + - .env.docker |
| 150 | + ports: |
| 151 | + - "8006:8006" |
| 152 | + volumes: |
| 153 | + - ./llamaindex_cookbook:/app/llamaindex_cookbook # load local code change to container without the need of rebuild |
| 154 | + - ./data:/app/data |
| 155 | + - ./logging.ini:/app/logging.ini |
| 156 | + depends_on: |
| 157 | + rabbitmq: |
| 158 | + condition: service_healthy |
| 159 | + control_plane: |
| 160 | + condition: service_healthy |
| 161 | + platform: linux/amd64 |
| 162 | + build: |
| 163 | + context: . |
| 164 | + dockerfile: ./Dockerfile |
| 165 | + healthcheck: |
| 166 | + test: wget --no-verbose --tries=1 http://0.0.0.0:8006/is_worker_running || exit 1 |
| 167 | + interval: 30s |
| 168 | + retries: 5 |
| 169 | + start_period: 20s |
| 170 | + timeout: 10s |
| 171 | +volumes: |
| 172 | + rabbitmq: |
0 commit comments