File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Локально — localhost; в Docker — assistant-redis / assistant-nats (контейнеры из assistant-chat-infra)
12REDIS_URL = redis://localhost:6379/0
23NATS_URL = nats://localhost:4222
34
Original file line number Diff line number Diff line change 1- services :
2- redis :
3- image : redis:7.4
4- container_name : assistant-redis
5- restart : unless-stopped
6- command : >
7- redis-server
8- --save 60 1
9- --loglevel notice
10- --maxmemory 256mb
11- --maxmemory-policy allkeys-lru
12- volumes :
13- - redis-data:/data
14- ports :
15- - " 6379:6379"
16- networks :
17- - assistant-net
18-
19- nats :
20- image : nats:2.10
21- container_name : assistant-nats
22- restart : unless-stopped
23- command : >
24- -js
25- --store_dir /data
26- -m 8222
27- volumes :
28- - nats-data:/data
29- ports :
30- - " 4222:4222"
31- - " 8222:8222"
32- networks :
33- - assistant-net
1+ name : assistant-chat-backend
342
3+ services :
354 backend :
365 build :
376 context : .
@@ -45,18 +14,8 @@ services:
4514 - " 8000:8000"
4615 networks :
4716 - assistant-net
48- depends_on :
49- - redis
50- - nats
5117
52-
53- name : assistant-chat-backend
5418networks :
5519 assistant-net :
20+ external : true
5621 name : assistant-net
57- driver : bridge
58-
59-
60- volumes :
61- redis-data :
62- nats-data :
You can’t perform that action at this time.
0 commit comments