Skip to content

Commit e99d6e4

Browse files
committed
fixed volume name
1 parent 33ae7d9 commit e99d6e4

File tree

4 files changed

+97
-2
lines changed

4 files changed

+97
-2
lines changed

stack-ms-mx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

stack-ms.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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

stack-ws-mx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

stack-ws.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)