docker-compose.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. version: "3.8"
  2. services:
  3. cfc-backend:
  4. build:
  5. context: ../cfc-backend
  6. dockerfile: Dockerfile
  7. ports:
  8. - "9082:9082"
  9. environment:
  10. - SPRING_PROFILES_ACTIVE=prod
  11. - python.enabled=true
  12. - python.base-url=http://langgraph-svc:9000
  13. networks:
  14. - cfc-net
  15. restart: unless-stopped
  16. healthcheck:
  17. test: ["CMD", "curl", "-f", "http://localhost:9082/actuator/health"]
  18. interval: 30s
  19. timeout: 5s
  20. retries: 3
  21. langgraph-svc:
  22. build:
  23. context: .
  24. dockerfile: Dockerfile
  25. ports:
  26. - "9000:9000"
  27. env_file:
  28. - .env.production
  29. environment:
  30. - JAVA_BASE_URL=http://cfc-backend:9082
  31. - CHROMA_DB_PATH=/data/chroma_db
  32. - JSON_LOGS=true
  33. - LANGCHAIN_TRACING_V2=${LANGCHAIN_TRACING_V2:-false}
  34. volumes:
  35. - langgraph-data:/data
  36. networks:
  37. - cfc-net
  38. restart: unless-stopped
  39. healthcheck:
  40. test: ["CMD", "curl", "-f", "http://localhost:9000/api/v1/health"]
  41. interval: 30s
  42. timeout: 5s
  43. retries: 3
  44. depends_on:
  45. - cfc-backend
  46. prometheus:
  47. image: prom/prometheus:latest
  48. volumes:
  49. - ./prometheus.yml:/etc/prometheus/prometheus.yml
  50. - prometheus-data:/prometheus
  51. networks:
  52. - cfc-net
  53. restart: unless-stopped
  54. profiles:
  55. - monitoring
  56. networks:
  57. cfc-net:
  58. volumes:
  59. langgraph-data:
  60. prometheus-data: