File tree Expand file tree Collapse file tree 4 files changed +97
-2
lines changed
Expand file tree Collapse file tree 4 files changed +97
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ services:
5151 container_name : ms_mysql
5252 volumes :
5353 - ./init-db:/docker-entrypoint-initdb.d
54- - ms-db :/var/lib/mysql
54+ - ms_db :/var/lib/mysql
5555 environment :
5656 " MYSQL_ROOT_PASSWORD " : foo
5757 " MYSQL_DATABASE " : ms_orderinfo
Original file line number Diff line number Diff line change 1+ version : " 3.1"
2+ services :
3+ create :
4+ image : ms_create
5+ container_name : ms_create
6+ build :
7+ context : .
8+ dockerfile : Dockerfile-cs
9+ args :
10+ MYSQL_PASSWORD : foo
11+ depends_on :
12+ - mysql
13+ environment :
14+ RMI_REMOTE_HOST : ms_create
15+ RMI_REMOTE_PORT : 1099
16+ MYSQL_REMOTE_HOST : ms_mysql
17+ MYSQL_REMOTE_PORT : 3306
18+
19+ retrieve :
20+ image : ms_retrieve
21+ container_name : ms_retrieve
22+ build :
23+ context : .
24+ dockerfile : Dockerfile-rs
25+ args :
26+ MYSQL_PASSWORD : foo
27+ depends_on :
28+ - mysql
29+ environment :
30+ RMI_REMOTE_HOST : ms_retrieve
31+ RMI_REMOTE_PORT : 1098
32+ MYSQL_REMOTE_HOST : ms_mysql
33+ MYSQL_REMOTE_PORT : 3306
34+
35+ client :
36+ image : ms_client
37+ container_name : ms_client
38+ stdin_open : true
39+ tty : true
40+ build :
41+ context : .
42+ dockerfile : Dockerfile-msc
43+ command : java OrdersUI
44+ environment :
45+ RMI_REMOTE_HOST : ms_server
46+ RMI_REMOTE_PORT : 1099
47+
48+ mysql :
49+ image : mysql:5.7
50+ container_name : ms_mysql
51+ volumes :
52+ - ./init-db:/docker-entrypoint-initdb.d
53+ - ms_db:/var/lib/mysql
54+ environment :
55+ " MYSQL_ROOT_PASSWORD " : foo
56+ " MYSQL_DATABASE " : ms_orderinfo
57+ " MYSQL_HOST " : ms_mysql
58+ expose :
59+ - 3306
60+
61+ volumes :
62+ ms_db :
63+ external : true
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ services:
2121 container_name : ws_mysql
2222 volumes :
2323 - ./init-db:/docker-entrypoint-initdb.d
24- - ws-db :/var/lib/mysql
24+ - ws_db :/var/lib/mysql
2525 environment :
2626 " MYSQL_ROOT_PASSWORD " : foo
2727 " MYSQL_DATABASE " : ws_orderinfo
Original file line number Diff line number Diff line change 1+ version : " 3.1"
2+ services :
3+ server :
4+ image : ws_server
5+ restart : always
6+ container_name : ws_server
7+ build :
8+ context : .
9+ dockerfile : Dockerfile-ws
10+ args :
11+ MYSQL_PASSWORD : foo
12+ depends_on :
13+ - mysql
14+ expose :
15+ - 3000
16+ ports :
17+ - 3000:3000
18+ mysql :
19+ image : mysql:5.7
20+ container_name : ws_mysql
21+ volumes :
22+ - ./init-db:/docker-entrypoint-initdb.d
23+ - ws_db:/var/lib/mysql
24+ environment :
25+ " MYSQL_ROOT_PASSWORD " : foo
26+ " MYSQL_DATABASE " : ws_orderinfo
27+ " MYSQL_HOST " : ws_mysql
28+ expose :
29+ - 3306
30+ volumes :
31+ ws_db :
32+ external : true
You can’t perform that action at this time.
0 commit comments