-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
98 lines (93 loc) · 2.51 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
# Copyright (C) 2024 RidgeRun, LLC (http://www.ridgerun.com)
# All Rights Reserved.
#
# The contents of this software are proprietary and confidential to RidgeRun,
# LLC. No part of this program may be photocopied, reproduced or translated
# into another programming language without prior written consent of
# RidgeRun, LLC. The user is free to modify the source code after obtaining
# a software license from RidgeRun. All source code changes must be provided
# back to RidgeRun without any encumbrance.
services:
detection:
image: ridgerun/detection-service
user: "0:0"
network_mode: "host"
runtime: nvidia
logging:
driver: "json-file"
options:
max-size: "8192m"
max-file: "3"
restart: always
container_name: detection-service
entrypoint: detection --horizontal-slices=1 --vertical-slices=1
deploy:
resources:
limits:
memory: 5600M
restart_policy:
condition: always
analytics:
image: ridgerun/analytics-service
user: "0:0"
network_mode: "host"
runtime: nvidia
logging:
driver: "json-file"
options:
max-size: "8192m"
max-file: "3"
restart: always
volumes:
- ./config/analytics/:/analytics-config/
container_name: analytics-service
entrypoint: analytics --config-file /analytics-config/configuration.json
depends_on:
detection:
condition: service_started
deploy:
resources:
limits:
memory: 5600M
restart_policy:
condition: always
agent:
image: ridgerun/ai-agent-service
user: "0:0"
network_mode: "host"
runtime: nvidia
logging:
driver: "json-file"
options:
max-size: "8192m"
max-file: "3"
restart: always
volumes:
- ./config/agent/:/ai-agent-config/
container_name: agent-service
entrypoint: ai-agent --system_prompt ai-agent-config/prompt.txt --api_map ai-agent-config/api_mapping.json
depends_on:
detection:
condition: service_started
deploy:
restart_policy:
condition: always
ptz:
image: ridgerun/ptz-service
user: "0:0"
network_mode: "host"
runtime: nvidia
logging:
driver: "json-file"
options:
max-size: "8192m"
max-file: "3"
restart: always
container_name: ptz-service
entrypoint: ptz --host 127.0.0.1 --port 5020
depends_on:
detection:
condition: service_started
deploy:
restart_policy:
condition: always