docker-compose.yaml 439 B

123456789101112131415161718192021
  1. version: "3"
  2. services:
  3. matting:
  4. image: registry.cn-hangzhou.aliyuncs.com/tuon-pub/img-processor
  5. container_name: matting
  6. ports:
  7. - 20201:20201
  8. volumes:
  9. - ./uploads:/app/uploads
  10. - ./outputs:/app/outputs
  11. - ./models:/app/models
  12. restart: always
  13. deploy:
  14. resources:
  15. limits:
  16. cpus: '1'
  17. memory: 2G
  18. reservations:
  19. cpus: '0.5'
  20. memory: 512M