-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
121 lines (112 loc) · 2.35 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
services:
mongo-match:
image: mongo:latest
ports:
- 27017:27017
volumes:
- mongodb_match_data:/data/db
mongo-player:
image: mongo:latest
ports:
- 27018:27017
volumes:
- mongodb_player_data:/data/db
mysql-club:
image: mysql:latest
ports:
- 3307:3306
volumes:
- mysql_club_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
mysql-transfer:
image: mysql:latest
ports:
- 3308:3306
volumes:
- mysql_transfer_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
match-service:
depends_on:
- player-service
- club-service
- mongo-match
image: enre0333/match-service
ports:
- 8080:8080
links:
- mongo-match
environment:
MONGODB_PORT: 27017
MONGODB_HOST: mongo-match
PLAYER_SERVICE_BASEURL: player-service:8081
CLUB_SERVICE_BASEURL: club-service:8082
player-service:
depends_on:
- mongo-player
image: enre0333/player-service
ports:
- 8081:8081
links:
- mongo-player
environment:
MONGODB_PORT: 27017
MONGODB_HOST: mongo-player
club-service:
depends_on:
- player-service
- mysql-club
image: enre0333/club-service
ports:
- 8082:8082
links:
- mysql-club
environment:
MYSQL_DB_USERNAME: root
MYSQL_DB_PASSWORD:
MYSQL_DB_HOST: mysql-club
MYSQL_DB_PORT: 3306
PLAYER_SERVICE_BASEURL: player-service:8081
transfer-service:
depends_on:
- player-service
- club-service
- mysql-transfer
image: enre0333/transfer-service
ports:
- 8083:8083
links:
- player-service
- club-service
environment:
MYSQL_DB_USERNAME: root
MYSQL_DB_PASSWORD:
MYSQL_DB_HOST: mysql-transfer
MYSQL_DB_PORT: 3306
PLAYER_SERVICE_BASEURL: player-service:8081
CLUB_SERVICE_BASEURL: club-service:8082
api-gateway:
depends_on:
- transfer-service
- match-service
- club-service
- player-service
image: enre0333/ede-api-gateway
ports:
- 8084:8084
links:
- transfer-service
- match-service
- club-service
- player-service
environment:
TRANSFER_SERVICE_BASEURL: transfer-service:8083
MATCH_SERVICE_BASEURL: match-service:8080
PLAYER_SERVICE_BASEURL: player-service:8081
CLUB_SERVICE_BASEURL: club-service:8082
volumes:
mongodb_match_data:
mongodb_player_data:
mysql_club_data:
mysql_transfer_data: