diff --git a/docker-compose.yml b/docker-compose.yml index f99a11f..da14ab6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,7 +26,7 @@ services: context: ./services/paddle_services container_name: ocr hostname: ocr - command: [ '-w', '1', 'ocr:app', '--bind', '0.0.0.0:5001' ] + command: [ '-w', '4', 'ocr:app', '--bind', '0.0.0.0:5001' ] deploy: resources: reservations: @@ -39,7 +39,7 @@ services: <<: *paddle_template container_name: ie_settlement hostname: ie_settlement - command: [ '-w', '1', 'ie_settlement:app', '--bind', '0.0.0.0:5002' ] + command: [ '-w', '4', 'ie_settlement:app', '--bind', '0.0.0.0:5002' ] deploy: resources: reservations: @@ -52,7 +52,7 @@ services: <<: *paddle_template container_name: ie_discharge hostname: ie_discharge - command: [ '-w', '1', 'ie_discharge:app', '--bind', '0.0.0.0:5003' ] + command: [ '-w', '4', 'ie_discharge:app', '--bind', '0.0.0.0:5003' ] deploy: resources: reservations: @@ -65,7 +65,7 @@ services: <<: *paddle_template container_name: ie_cost hostname: ie_cost - command: [ '-w', '1', 'ie_cost:app', '--bind', '0.0.0.0:5004' ] + command: [ '-w', '4', 'ie_cost:app', '--bind', '0.0.0.0:5004' ] deploy: resources: reservations: @@ -78,7 +78,7 @@ services: <<: *paddle_template container_name: clas_orientation hostname: clas_orientation - command: [ '-w', '1', 'clas_orientation:app', '--bind', '0.0.0.0:5005' ] + command: [ '-w', '3', 'clas_orientation:app', '--bind', '0.0.0.0:5005' ] deploy: resources: reservations: @@ -91,7 +91,7 @@ services: <<: *paddle_template container_name: det_book hostname: det_book - command: [ '-w', '1', 'det_book:app', '--bind', '0.0.0.0:5006' ] + command: [ '-w', '4', 'det_book:app', '--bind', '0.0.0.0:5006' ] deploy: resources: reservations: @@ -104,7 +104,7 @@ services: <<: *paddle_template container_name: dewarp hostname: dewarp - command: [ '-w', '1', 'dewarp:app', '--bind', '0.0.0.0:5007' ] + command: [ '-w', '4', 'dewarp:app', '--bind', '0.0.0.0:5007' ] deploy: resources: reservations: @@ -113,25 +113,25 @@ services: capabilities: [ 'gpu' ] driver: 'nvidia' - clas_text: - <<: *paddle_template - container_name: clas_text - hostname: clas_text - command: [ '-w', '1', 'clas_text:app', '--bind', '0.0.0.0:5008' ] - deploy: - resources: - reservations: - devices: - - device_ids: [ '1' ] - capabilities: [ 'gpu' ] - driver: 'nvidia' + # clas_text: + # <<: *paddle_template + # container_name: clas_text + # hostname: clas_text + # command: [ '-w', '3', 'clas_text:app', '--bind', '0.0.0.0:5008' ] + # deploy: + # resources: + # reservations: + # devices: + # - device_ids: [ '1' ] + # capabilities: [ 'gpu' ] + # driver: 'nvidia' - photo_review_test_1: + photo_review_1: <<: *project_template build: context: . - container_name: photo_review_test_1 - hostname: photo_review_test_1 + container_name: photo_review_1 + hostname: photo_review_1 depends_on: - ocr - ie_settlement @@ -140,78 +140,53 @@ services: - clas_orientation - det_book - dewarp - - clas_text + # - clas_text command: [ 'photo_review.py', '--clean', 'True' ] -# photo_review_1: -# <<: *project_template -# build: -# context: . -# container_name: photo_review_1 -# hostname: photo_review_1 -# depends_on: -# - ocr -# - ie_settlement -# - ie_discharge -# - ie_cost -# - clas_orientation -# - det_book -# - dewarp -# - clas_text -# command: [ 'photo_review.py', '--clean', 'True' ] - -# photo_review_2: -# <<: *project_template -# container_name: photo_review_2 -# hostname: photo_review_2 -# depends_on: -# - photo_review_1 -# command: [ 'photo_review.py' ] -# -# photo_review_3: -# <<: *project_template -# container_name: photo_review_3 -# hostname: photo_review_3 -# depends_on: -# - photo_review_2 -# command: [ 'photo_review.py' ] -# -# photo_review_4: -# <<: *project_template -# container_name: photo_review_4 -# hostname: photo_review_4 -# depends_on: -# - photo_review_3 -# command: [ 'photo_review.py' ] -# -# photo_review_5: -# <<: *project_template -# container_name: photo_review_5 -# hostname: photo_review_5 -# depends_on: -# - photo_review_4 -# command: [ 'photo_review.py' ] - - photo_mask_test_1: + photo_review_2: <<: *project_template - container_name: photo_mask_test_1 - hostname: photo_mask_test_1 + container_name: photo_review_2 + hostname: photo_review_2 depends_on: - - photo_review_test_1 + - photo_review_1 + command: [ 'photo_review.py' ] + + photo_review_3: + <<: *project_template + container_name: photo_review_3 + hostname: photo_review_3 + depends_on: + - photo_review_1 + command: [ 'photo_review.py' ] + + photo_review_4: + <<: *project_template + container_name: photo_review_4 + hostname: photo_review_4 + depends_on: + - photo_review_1 + command: [ 'photo_review.py' ] + + photo_review_5: + <<: *project_template + container_name: photo_review_5 + hostname: photo_review_5 + depends_on: + - photo_review_1 + command: [ 'photo_review.py' ] + + photo_mask_1: + <<: *project_template + container_name: photo_mask_1 + hostname: photo_mask_1 + depends_on: + - photo_review_1 command: [ 'photo_mask.py', '--clean', 'True' ] -# photo_mask_1: -# <<: *project_template -# container_name: photo_mask_1 -# hostname: photo_mask_1 -# depends_on: -# - photo_review_1 -# command: [ 'photo_mask.py', '--clean', 'True' ] - -# photo_mask_2: -# <<: *project_template -# container_name: photo_mask_2 -# hostname: photo_mask_2 -# depends_on: -# - photo_mask_1 -# command: [ 'photo_mask.py' ] \ No newline at end of file + photo_mask_2: + <<: *project_template + container_name: photo_mask_2 + hostname: photo_mask_2 + depends_on: + - photo_mask_1 + command: [ 'photo_mask.py' ] \ No newline at end of file