11version : ' 2'
22services :
33 redis :
4- image : redis:latest
4+ image : shareai/ redis:x86
55 restart : always
66 container_name : " redis"
77 command : sh -c "rm -rf /data/*.rdb && redis-server --maxmemory 40mb --maxmemory-policy allkeys-lru --save \"\" --appendonly no --dbfilename \"\""
@@ -17,16 +17,12 @@ services:
1717 aliases :
1818 - redis
1919 broker :
20- # image: moscajs/aedes:latest
21- image : emqx/emqx:latest
20+ image : shareai/broker:x86
2221 restart : always
2322 container_name : " broker"
2423 ports :
2524 - 1883:1883
26- - 80:8083
27- volumes :
28- - ./brokerConfig.js:/data/brokerConfig.js
29- # command: --config /data/brokerConfig.js
25+ - 9001:9001
3026 logging :
3127 driver : json-file
3228 options :
@@ -36,21 +32,6 @@ services:
3632 main :
3733 aliases :
3834 - mqttserver
39- minio :
40- image : shareai/minio:x86
41- restart : always
42- container_name : " minio"
43- ports :
44- - 9000:9000
45- logging :
46- driver : json-file
47- options :
48- max-size : " 10m"
49- max-file : " 10"
50- networks :
51- main :
52- aliases :
53- - minio
5435 camera :
5536 container_name : " camera"
5637 command : sh -c "if [ ! -f /opt/nvr/conf/conf.sqlite ]; then cp /opt/nvr/sql/shinobi.sample.sqlite /opt/nvr/conf/conf.sqlite -a ; fi && sleep 3 && (node /opt/nvr/cron.js &) && node /opt/nvr/camera.js"
@@ -124,7 +105,7 @@ services:
124105 - facd_detector
125106 embedding :
126107 command : sh -c "cd /data/runtime/src/ && ls /data/runtime -l && ls /data/runtime/src && ./start_embedding_only.sh"
127- image : shareai/embedding:x86_latest
108+ image : shareai/embedding:x86
128109 container_name : " embedding"
129110 env_file :
130111 - ./cluster.env
@@ -136,7 +117,6 @@ services:
136117 restart : always
137118 depends_on :
138119 - " redis"
139- - " api_server"
140120 logging :
141121 driver : json-file
142122 options :
@@ -155,10 +135,7 @@ services:
155135 - ./workaipython/cache:/data/runtime/cache
156136 - ./workaipython/data:/data/runtime/src/data
157137 - ./opt/nvr/detector/images:/opt/nvr/detector/images
158- - ../src/embedding:/data/runtime/src
159138 - ./opt/nvr/detector/frames:/opt/nvr/videos/frames
160- - ../model/model-0000.params:/data/runtime/model-0000.params
161- - ../model/model-symbol.json:/data/runtime/model-symbol.json
162139 detector_plugin :
163140 container_name : " detector_plugin"
164141 depends_on :
@@ -214,24 +191,5 @@ services:
214191 - ../src/detector/realtime_message.js:/opt/nvr/detector/realtime_message.js
215192 - ../src/detector/upload_listener.js:/opt/nvr/detector/upload_listener.js
216193 - ../src/detector/config:/opt/nvr/detector/config
217- api_server :
218- container_name : " api_server"
219- logging :
220- driver : json-file
221- options :
222- max-size : " 10m"
223- max-file : " 10"
224- image : shareai/api_server:3.4.1
225- environment :
226- NODE_TLS_REJECT_UNAUTHORIZED : 0
227- volumes :
228- - ./db:/root/SharpAIMobileApp/.meteor/local/db
229- networks :
230- main :
231- aliases :
232- - apiserver
233- ports :
234- - 3000:3000
235- restart : always
236194networks :
237195 main :
0 commit comments