Skip to content

Commit

Permalink
Merge pull request #1134 from exadel-inc/EFRS-1397_update_docker_comp…
Browse files Browse the repository at this point in the history
…ose_GPU

EFRS-1397 Update docker compose gpu
  • Loading branch information
Anatolii-R authored Aug 1, 2023
2 parents c985c8b + 59deac3 commit 7a441f8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion custom-builds/Mobilenet-gpu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ services:
image: ${registry}compreface-core:${CORE_VERSION}
restart: always
container_name: "compreface-core"
runtime: nvidia
environment:
- ML_PORT=3000
- IMG_LENGTH_LIMIT=${max_detect_size}
- UWSGI_PROCESSES=${uwsgi_processes:-1}
- UWSGI_THREADS=${uwsgi_threads:-1}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]

8 changes: 7 additions & 1 deletion custom-builds/SubCenter-ArcFace-r100-gpu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ services:
image: ${registry}compreface-core:${CORE_VERSION}
restart: always
container_name: "compreface-core"
runtime: nvidia
environment:
- ML_PORT=3000
- IMG_LENGTH_LIMIT=${max_detect_size}
- UWSGI_PROCESSES=${uwsgi_processes:-2}
- UWSGI_THREADS=${uwsgi_threads:-1}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]

8 changes: 7 additions & 1 deletion dev/docker-compose-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ services:
container_name: "compreface-core"
ports:
- "3300:3000"
runtime: nvidia
build:
context: ../embedding-calculator
args:
Expand All @@ -104,3 +103,10 @@ services:
- ML_PORT=3000
- UWSGI_PROCESSES=${uwsgi_processes:-1}
- UWSGI_THREADS=${uwsgi_threads:-1}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]

0 comments on commit 7a441f8

Please sign in to comment.