docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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://172.17.0.1: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. prometheus:
  45. image: prom/prometheus:latest
  46. volumes:
  47. - ./prometheus.yml:/etc/prometheus/prometheus.yml
  48. - prometheus-data:/prometheus
  49. networks:
  50. - cfc-net
  51. restart: unless-stopped
  52. profiles:
  53. - monitoring
  54. networks:
  55. cfc-net:
  56. volumes:
  57. langgraph-data:
  58. prometheus-data: