-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
92 lines (79 loc) · 1.68 KB
/
docker-compose.yml
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
version: "3.8"
services:
fe-service:
build:
context: ./client/
dockerfile: Dockerfile
container_name: client-service-container
ports:
- "3001:3000"
archiver-service:
build:
context: ./archiver/
dockerfile: Dockerfile
container_name: archiver-service-container
ports:
- "3003:3003"
environment:
- REDIS_URL=redis:6379
depends_on:
- redis
backend-service:
build:
context: ./backend/
dockerfile: Dockerfile
container_name: backend-service-container
ports:
- "3000:3000"
environment:
- REDIS_URL=redis:6379
- REDIS_URL_2=redis2:6379
depends_on:
- redis
- redis2
orderbook-service:
build:
context: ./orderbook/
dockerfile: Dockerfile
container_name: order-service-container
ports:
- "3002:3002"
environment:
- REDIS_URL=redis:6379
- REDIS_URL_2=redis2:6379
depends_on:
- redis
- redis2
volumes:
- orderbook-data:/app/data/db.json # Use a Docker volume instead of a host directory
websocket-service:
build:
context: ./websocket/
dockerfile: Dockerfile
container_name: websocket-service-container
ports:
- "8080:8080"
environment:
- REDIS_URL=redis:6379
depends_on:
- redis
redis:
image: redis:alpine
container_name: redis-container1
ports:
- "6379:6379"
volumes:
- redis-data:/data
redis2:
image: redis:alpine
container_name: redis-container2
ports:
- "6380:6379"
volumes:
- redis2-data:/data
volumes:
redis-data:
driver: local
redis2-data:
driver: local
orderbook-data: