Skip to content

Commit 25cb38e

Browse files
committed
chore: update docker-compose configuration and .env.example for local development
1 parent 4fdf6d4 commit 25cb38e

2 files changed

Lines changed: 4 additions & 44 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Локально — localhost; в Docker — assistant-redis / assistant-nats (контейнеры из assistant-chat-infra)
12
REDIS_URL=redis://localhost:6379/0
23
NATS_URL=nats://localhost:4222
34

docker-compose.yaml

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
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
5418
networks:
5519
assistant-net:
20+
external: true
5621
name: assistant-net
57-
driver: bridge
58-
59-
60-
volumes:
61-
redis-data:
62-
nats-data:

0 commit comments

Comments
 (0)