-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
web:
container_name: image_retrieval_api
build:
context: .
target: web-final
restart: always
volumes:
- .:/app
command: ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "5000", "--reload"]
ports:
- "5000:5000"
depends_on:
- tritonserver
networks:
mynet:
ipv4_address: 10.5.0.4
tritonserver:
image: nvcr.io/nvidia/tritonserver:24.01-py3
restart: always
ports:
- "8000:8000"
- "8001:8001"
- "8002:8002"
volumes:
- ./models:/models
command: ["tritonserver", "--model-repository=/models", "--log-verbose", "1"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
mynet:
ipv4_address: 10.5.0.5
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1