docker-compose.yml 894 B

12345678910111213141516171819202122232425262728
  1. version: "3"
  2. services:
  3. app:
  4. image: registry.persagy.com/sagacloud/saga_algo_api:0.5.21
  5. container_name: saga_algo_api
  6. ports:
  7. - "8002:8002"
  8. environment:
  9. PLATFORM_HOST: "http://api.sagacloud.cn/data-platform-3"
  10. TRANSFER_HOST: "http://api.sagacloud.cn/duoduo-service/transfer"
  11. CUSTOM_HOST: "http://api.sagacloud.cn/duoduo-service/custom-service"
  12. MILVUS_HOST: "172.18.0.1"
  13. MILVUS_PORT: "19530"
  14. REDIS_HOST: "172.17.11.179"
  15. REDIS_PORT: "6379"
  16. REDIS_DB: 0
  17. REDIS_PASSWORD: "123456"
  18. DUCKLING_HOST: "http://172.18.0.1:8000"
  19. extra_hosts:
  20. - "api.sagacloud.cn:172.17.161.77"
  21. restart: always
  22. volumes:
  23. - /data/docker/volumes/saga_algo_api_vol/_data/ml_models:/code/ml_models
  24. - /data/docker/volumes/saga_algo_api_vol/_data/sql_app.db:/code/sql_app.db