docker-compose.yml 468 B

1234567891011121314151617
  1. version: "3.7"
  2. services:
  3. qreader:
  4. image: pycpu:3.7.10
  5. volumes:
  6. - ../../../../:/var/www/html
  7. - ../conf/etc/localtime:/etc/localtime:ro
  8. - /nfs/upload:/var/www/html/data/upload
  9. - /mnt/testlog:/var/www/html/data/log
  10. - /mnt/stdata:/var/www/html/data/stdata
  11. container_name: "test-qreader"
  12. command: ['python', 'qreader.py', '-h', '172.26.105.127', '-p', '6379']
  13. deploy:
  14. resources:
  15. limits:
  16. cpus: '8'