docker-compose.yml 850 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. version: '3.8'
  2. services:
  3. app:
  4. build: .
  5. ports:
  6. - "8080:8080"
  7. volumes:
  8. - ./data:/app/data
  9. - ./config.yaml:/app/config.yaml
  10. depends_on:
  11. - litellm
  12. environment:
  13. - GIN_MODE=release
  14. - TZ=UTC
  15. networks:
  16. - byom-network
  17. healthcheck:
  18. test: ["CMD", "wget", "--spider", "http://localhost:8080/health"]
  19. interval: 30s
  20. timeout: 10s
  21. retries: 3
  22. litellm:
  23. image: ghcr.io/berriai/litellm:main
  24. ports:
  25. - "8000:8000"
  26. environment:
  27. - OPENAI_API_KEY=${OPENAI_API_KEY}
  28. - MODEL_CONFIG_PATH=/app/model_config.yaml
  29. volumes:
  30. - ./model_config.yaml:/app/model_config.yaml
  31. networks:
  32. - byom-network
  33. healthcheck:
  34. test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
  35. interval: 30s
  36. timeout: 10s
  37. retries: 3