-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstack-ws.yml
53 lines (50 loc) · 913 Bytes
/
stack-ws.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
services:
server:
image: ws_server
restart: always
container_name: ws_server
build:
context: .
dockerfile: Dockerfile-ws
args:
MYSQL_PASSWORD: foo
depends_on:
- mysql
expose:
- 3000
ports:
- 3000:3000
networks:
- ws
mysql:
image: mysql:5.7
container_name: ws_mysql
volumes:
- ./init-db:/docker-entrypoint-initdb.d
- ws_db:/var/lib/mysql
environment:
"MYSQL_ROOT_PASSWORD": foo
"MYSQL_DATABASE": ws_orderinfo
"MYSQL_HOST": ws_mysql
expose:
- 3306
networks:
- ws
client:
image: ws_client
container_name: ws_client
stdin_open: true
tty: true
build:
context: .
dockerfile: Dockerfile-wsc
command: java OrdersUI
networks:
- ws
networks:
default:
external:
name: ws
volumes:
ws_db:
external: true