-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·136 lines (132 loc) · 3.2 KB
/
docker-compose.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
networks:
triton-network:
driver: bridge
ipam:
config:
- subnet: ${SUBNET}
services:
triton-model-builder:
build:
args:
- TRITON_VERSION=${MAJOR_UPDATE_VERSION}
- PROTOBUF_URL=${PROTOBUF_URL}
- TAO_VERSION=${TAO_VERSION}
context: docker/triton-server
image: triton-server-image
ulimits:
memlock: -1
stack: 1073741824
runtime: nvidia
env_file:
- .env
entrypoint: ["bash", "/tmp/entrypoint.sh"]
volumes:
- type: bind
source: docker/triton-server/facenet_model
target: /tmp/dali/facenet_model
- type: bind
source: docker/triton-server/fpenet_model
target: /tmp/dali/fpenet_model
- type: bind
source: ${FACENET_MODEL_PATH}
target: /tmp/facenet_model
- type: bind
source: ${FPENET_MODEL_PATH}
target: /tmp/fpenet_model
- type: bind
source: docker/triton-server/tlt-converter.sh
target: /tmp/entrypoint.sh
- type: bind
source: triton-models
target: /models
triton-server:
image: triton-server-image
ulimits:
memlock: -1
stack: 67108864
runtime: nvidia
env_file:
- .env
ports:
- 8000:8000
- 8001:8001
- 8002:8002
entrypoint:
[
"tritonserver",
"--model-repository=/models",
"--allow-metrics=true",
"--allow-gpu-metrics=true",
"--log-verbose=0",
"--repository-poll-secs=3",
]
hostname: triton-server
networks:
triton-network:
ipv4_address: ${TRITON_SERVER_IP}
volumes:
- type: bind
source: triton-models
target: /models
- type: bind
source: ${HOST_IMAGE_FOLDER}
target: ${CONTAINER_IMAGE_FOLDER}
triton-client:
build:
args:
- TRITON_VERSION=${MAJOR_UPDATE_VERSION}
- PROTOBUF_URL=${PROTOBUF_URL}
context: docker/triton-client
image: triton-client
ulimits:
memlock: -1
stack: 67108864
runtime: nvidia
env_file:
- .env
ports:
- 8888:8888
entrypoint:
[
"jupyter",
"lab",
"--ServerApp.ip=0.0.0.0",
"--ServerApp.port=8888",
"--ServerApp.allow_root=True",
"--ServerApp.token=''",
"--ServerApp.password=''",
"--Application.log_level='CRITICAL'",
]
working_dir: /workspace
hostname: triton-client
networks:
triton-network:
ipv4_address: ${TRITON_CLIENT_IP}
volumes:
- type: bind
source: workspace
target: /workspace
- type: bind
source: ${HOST_IMAGE_FOLDER}
target: ${CONTAINER_IMAGE_FOLDER}
- type: bind
source: triton-models
target: /models
redis-db:
image: ${REDIS_DB_IMAGE}
env_file:
- .env
ports:
- 6379:6379
hostname: redis-db
networks:
triton-network:
ipv4_address: ${REDIS_DB_IP}
volumes:
- type: bind
source: docker/redis-db
target: /data
- type: bind
source: docker/redis-db/redis.conf
target: /usr/local/etc/redis/redis.conf
entrypoint: ["redis-server", "/usr/local/etc/redis/redis.conf"]