-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
99 lines (90 loc) · 1.89 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
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
93
94
95
96
97
98
99
version: '2'
networks:
file-services:
volumes:
postgres-data:
fs1:
fs2:
fs3:
services:
db:
environment:
POSTGRES_DB: dfs
image: postgres:9.6.1-alpine
volumes:
- postgres-data:/var/lib/postgresql/data
auth-service:
command: wait-for-it.sh migrator:8000 --strict -- auth-service
depends_on:
- db
- migrator
image: houli/auth-service
ports:
- "8080:8080"
file-service1:
command: wait-for-it.sh directory-service:8080 --strict -- file-service
depends_on:
- auth-service
- db
- directory-service
- migrator
image: houli/file-service
environment:
EXPOSED_PORT: 8081
networks:
- default
- file-services
ports:
- "8081:8080"
volumes:
- fs1:/data/files
file-service2:
command: wait-for-it.sh directory-service:8080 --strict -- file-service
depends_on:
- auth-service
- db
- directory-service
- migrator
image: houli/file-service
environment:
EXPOSED_PORT: 8082
networks:
- default
- file-services
ports:
- "8082:8080"
volumes:
- fs2:/data/files
file-service3:
command: wait-for-it.sh directory-service:8080 --strict -- file-service
depends_on:
- auth-service
- db
- directory-service
- migrator
image: houli/file-service
environment:
EXPOSED_PORT: 8083
networks:
- default
- file-services
ports:
- "8083:8080"
volumes:
- fs3:/data/files
directory-service:
command: wait-for-it.sh migrator:8000 --strict -- directory-service
depends_on:
- auth-service
- db
- migrator
image: houli/directory-service
ports:
- "8084:8080"
migrator:
command: wait-for-it.sh db:5432 --strict -- migrator
depends_on:
- db
expose:
- 8000
image: houli/migrator