| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- version: "3.8"
- services:
- cfc-backend:
- build:
- context: ../cfc-backend
- dockerfile: Dockerfile
- ports:
- - "9082:9082"
- environment:
- - SPRING_PROFILES_ACTIVE=prod
- - python.enabled=true
- - python.base-url=http://langgraph-svc:9000
- networks:
- - cfc-net
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:9082/actuator/health"]
- interval: 30s
- timeout: 5s
- retries: 3
- langgraph-svc:
- build:
- context: .
- dockerfile: Dockerfile
- ports:
- - "9000:9000"
- env_file:
- - .env.production
- environment:
- - JAVA_BASE_URL=http://172.17.0.1:9082
- - CHROMA_DB_PATH=/data/chroma_db
- - JSON_LOGS=true
- - LANGCHAIN_TRACING_V2=${LANGCHAIN_TRACING_V2:-false}
- volumes:
- - langgraph-data:/data
- networks:
- - cfc-net
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:9000/api/v1/health"]
- interval: 30s
- timeout: 5s
- retries: 3
- prometheus:
- image: prom/prometheus:latest
- volumes:
- - ./prometheus.yml:/etc/prometheus/prometheus.yml
- - prometheus-data:/prometheus
- networks:
- - cfc-net
- restart: unless-stopped
- profiles:
- - monitoring
- networks:
- cfc-net:
- volumes:
- langgraph-data:
- prometheus-data:
|