docker-compose.yml 799 B

12345678910111213141516171819202122
  1. version: "3"
  2. services:
  3. app:
  4. image: registry.persagy.com/sagacloud/saga_algo_api:0.5.19
  5. container_name: saga_algo_api
  6. ports:
  7. - "8002:8002"
  8. environment:
  9. POSTGRES_SERVER: "172.18.0.1:5432"
  10. POSTGRES_USER: saga
  11. POSTGRES_PASSWORD: deepsaga
  12. POSTGRES_DB: env_db
  13. PLATFORM_HOST: "http://api.sagacloud.cn/data-platform-3"
  14. TRANSFER_HOST: "http://api.sagacloud.cn/duoduo-service/transfer"
  15. CUSTOM_HOST: "http://api.sagacloud.cn/duoduo-service/custom-service"
  16. extra_hosts:
  17. - "api.sagacloud.cn:172.17.161.77"
  18. restart: always
  19. volumes:
  20. - /data/docker/volumes/saga_algo_api_vol/_data/ml_models:/code/ml_models
  21. - /data/docker/volumes/saga_algo_api_vol/_data/sql_app.db:/code/sql_app.db