version: "3.7" services: qreader: image: pycpu:3.7.10 volumes: - ../../../../:/var/www/html - ../conf/etc/localtime:/etc/localtime:ro - /nfs/upload:/var/www/html/data/upload - /mnt/testlog:/var/www/html/data/log - /mnt/stdata:/var/www/html/data/stdata container_name: "test-qreader" command: ['python', 'qreader.py', '-h', '172.26.105.127', '-p', '6379'] deploy: resources: limits: cpus: '8'