-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (44 loc) · 1.11 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
version: '2'
services:
#---------------------- Authentication Service--------------------#
auth-redis:
image: redis:3.2.7-alpine
auth-service:
image: auth
command: authServer-exe
environment: &authport #give a tag to auth port
AUTH_SERVICE_PORT: 8080
depends_on:
- auth-redis
ports:
- "8080:8080"
# --------------------Directory Service ---------------------------#
dir-redis:
image: redis:3.2.7-alpine
dir-service:
image: dir
command: dirServer-exe
environment:
<<: *authport # inhert auth port
DIRECTORY_PORT: 8081
SHADOW_PATH: "./shadowFS"
depends_on:
- auth-service
- dir-redis
ports:
- "8081:8081"
# -------------------Transaction Service ---------------------------#
trans-redis:
image: redis:3.2.7-alpine
trans-service:
image: trans
command: Transction-exe
environment:
<<: *authport # inherit auth port
TRANSACTION_PORT: 8082
depends_on:
- auth-service
- dir-service
ports:
- "8082:8082"
# ------------------------------------------------------------------#