compose.full.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. volumes:
  2. hatchet_certs:
  3. name: hatchet_certs
  4. hatchet_config:
  5. name: hatchet_config
  6. hatchet_api_key:
  7. name: hatchet_api_key
  8. hatchet_rabbitmq_data:
  9. name: hatchet_rabbitmq_data
  10. hatchet_rabbitmq_conf:
  11. name: hatchet_rabbitmq_conf
  12. hatchet_postgres_data:
  13. name: hatchet_postgres_data
  14. minio_data:
  15. name: minio_data
  16. postgres_data:
  17. name: postgres_data
  18. services:
  19. postgres:
  20. image: pgvector/pgvector:pg16
  21. profiles: [postgres]
  22. env_file:
  23. - ./env/postgres.env
  24. volumes:
  25. - postgres_data:/var/lib/postgresql/data
  26. ports:
  27. - "5432:5432"
  28. healthcheck:
  29. test: ["CMD-SHELL", "pg_isready -U postgres"]
  30. interval: 10s
  31. timeout: 5s
  32. retries: 5
  33. restart: on-failure
  34. command: >
  35. postgres
  36. -c max_connections=1024
  37. minio:
  38. image: minio/minio
  39. profiles: [minio]
  40. env_file:
  41. - ./env/minio.env
  42. volumes:
  43. - minio_data:/data
  44. ports:
  45. - "9000:9000"
  46. - "9001:9001"
  47. healthcheck:
  48. test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
  49. interval: 10s
  50. timeout: 5s
  51. retries: 5
  52. restart: on-failure
  53. command: server /data --console-address ":9001"
  54. hatchet-postgres:
  55. image: postgres:latest
  56. env_file:
  57. - ./env/hatchet.env
  58. volumes:
  59. - hatchet_postgres_data:/var/lib/postgresql/data
  60. healthcheck:
  61. test: ["CMD-SHELL", "pg_isready -U hatchet_user -d hatchet"]
  62. interval: 10s
  63. timeout: 5s
  64. retries: 5
  65. hatchet-rabbitmq:
  66. image: "rabbitmq:3-management"
  67. hostname: "hatchet-rabbitmq"
  68. ports:
  69. - "5673:5672"
  70. - "15673:15672"
  71. env_file:
  72. - ./env/hatchet.env
  73. volumes:
  74. - hatchet_rabbitmq_data:/var/lib/rabbitmq
  75. - hatchet_rabbitmq_conf:/etc/rabbitmq/rabbitmq.conf
  76. healthcheck:
  77. test: ["CMD", "rabbitmqctl", "status"]
  78. interval: 10s
  79. timeout: 10s
  80. retries: 5
  81. hatchet-create-db:
  82. image: postgres:latest
  83. command: sh /scripts/create-hatchet-db.sh
  84. volumes:
  85. - ./scripts:/scripts
  86. env_file:
  87. - ./env/hatchet.env
  88. hatchet-migration:
  89. image: ghcr.io/hatchet-dev/hatchet/hatchet-migrate:v0.53.15
  90. env_file:
  91. - ./env/hatchet.env
  92. depends_on:
  93. hatchet-create-db:
  94. condition: service_completed_successfully
  95. hatchet-setup-config:
  96. image: ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15
  97. command: /hatchet/hatchet-admin quickstart --skip certs --generated-config-dir /hatchet/config --overwrite=false
  98. env_file:
  99. - ./env/hatchet.env
  100. volumes:
  101. - hatchet_certs:/hatchet/certs
  102. - hatchet_config:/hatchet/config
  103. depends_on:
  104. hatchet-migration:
  105. condition: service_completed_successfully
  106. hatchet-rabbitmq:
  107. condition: service_healthy
  108. hatchet-engine:
  109. image: ghcr.io/hatchet-dev/hatchet/hatchet-engine:v0.53.15
  110. command: /hatchet/hatchet-engine --config /hatchet/config
  111. restart: on-failure
  112. depends_on:
  113. hatchet-setup-config:
  114. condition: service_completed_successfully
  115. ports:
  116. - "7077:7077"
  117. env_file:
  118. - ./env/hatchet.env
  119. volumes:
  120. - hatchet_certs:/hatchet/certs
  121. - hatchet_config:/hatchet/config
  122. healthcheck:
  123. test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8733/live"]
  124. interval: 10s
  125. timeout: 5s
  126. retries: 5
  127. hatchet-dashboard:
  128. image: ghcr.io/hatchet-dev/hatchet/hatchet-dashboard:v0.53.15
  129. command: sh ./entrypoint.sh --config /hatchet/config
  130. restart: on-failure
  131. depends_on:
  132. hatchet-setup-config:
  133. condition: service_completed_successfully
  134. env_file:
  135. - ./env/hatchet.env
  136. volumes:
  137. - hatchet_certs:/hatchet/certs
  138. - hatchet_config:/hatchet/config
  139. ports:
  140. - "7274:80"
  141. setup-token:
  142. image: ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15
  143. command: sh /scripts/setup-token.sh
  144. volumes:
  145. - ./scripts:/scripts
  146. - hatchet_certs:/hatchet/certs
  147. - hatchet_config:/hatchet/config
  148. - hatchet_api_key:/hatchet_api_key
  149. depends_on:
  150. hatchet-setup-config:
  151. condition: service_completed_successfully
  152. unstructured:
  153. image: ragtoriches/unst-prod
  154. healthcheck:
  155. test: ["CMD", "curl", "-f", "http://localhost:7275/health"]
  156. interval: 10s
  157. timeout: 5s
  158. retries: 5
  159. graph_clustering:
  160. image: ragtoriches/cluster-prod
  161. ports:
  162. - "7276:7276"
  163. healthcheck:
  164. test: ["CMD", "curl", "-f", "http://localhost:7276/health"]
  165. interval: 10s
  166. timeout: 5s
  167. retries: 5
  168. r2r:
  169. image: sciphiai/r2r:latest
  170. ports:
  171. - "7272:7272"
  172. env_file:
  173. - ./env/r2r-full.env
  174. command: sh /scripts/start-r2r.sh
  175. healthcheck:
  176. test: ["CMD", "curl", "-f", "http://localhost:7272/v3/health"]
  177. interval: 6s
  178. timeout: 5s
  179. retries: 5
  180. restart: on-failure
  181. volumes:
  182. - ./user_configs:/app/user_configs
  183. - ./user_tools:/app/user_tools
  184. - hatchet_api_key:/hatchet_api_key:ro
  185. - ./scripts:/scripts
  186. extra_hosts:
  187. - host.docker.internal:host-gateway
  188. depends_on:
  189. setup-token:
  190. condition: service_completed_successfully
  191. unstructured:
  192. condition: service_healthy
  193. graph_clustering:
  194. condition: service_healthy
  195. r2r-dashboard:
  196. image: sciphiai/r2r-dashboard:1.0.3
  197. env_file:
  198. - ./env/r2r-dashboard.env
  199. ports:
  200. - "7273:3000"