docker-compose.yml 664 B

123456789101112131415161718
  1. version: "3"
  2. services:
  3. app:
  4. image: registry.persagy.com/sagacloud/saga_algo_api:0.5.20
  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. extra_hosts:
  13. - "api.sagacloud.cn:172.17.161.77"
  14. restart: always
  15. volumes:
  16. - /data/docker/volumes/saga_algo_api_vol/_data/ml_models:/code/ml_models
  17. - /data/docker/volumes/saga_algo_api_vol/_data/sql_app.db:/code/sql_app.db