-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (104 loc) · 2.42 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
version: '3.1'
services:
zoo:
image: zookeeper:3.5
restart: always
container_name: zoo
dubbo_admin:
image: hansonyao/dubbo_admin
container_name: dubbo_admin
links:
- zoo:zoo
depends_on:
- zoo
ports:
- 8082:8080
restart: always
environment:
dubbo.registry.address: zookeeper://zoo:2181
dubbo.admin.root.password: root
ssm_service_user:
build:
context: ./ssm_service_user/
args:
JAR_FILE: ssm_service_user.jar
image: ssm_service_user:0.1
container_name: ssm_service_user
links:
- zoo:zoo
- db:db
depends_on:
- zoo
- db
restart: always
environment:
dubbo.registry.address: zookeeper://zoo:2181
dubbo.provider.user.protocol.port: 20882
ssm_service_article:
build:
context: ./ssm_service_article/
args:
JAR_FILE: ssm_service_article.jar
image: ssm_service_article:0.1
container_name: ssm_service_article
links:
- zoo:zoo
- db:db
depends_on:
- zoo
- db
restart: always
environment:
dubbo.registry.address: zookeeper://zoo:2181
dubbo.provider.article.protocol.port: 20882
ssm_service_picture:
build:
context: ./ssm_service_picture/
args:
JAR_FILE: ssm_service_picture.jar
image: ssm_service_picture:0.1
container_name: ssm_service_picture
links:
- zoo:zoo
- db:db
depends_on:
- zoo
- db
restart: always
environment:
dubbo.registry.address: zookeeper://zoo:2181
dubbo.provider.picture.protocol.port: 20882
ssm_dubbo_web:
build:
context: ./ssm_dubbo_web/
args:
JAR_FILE: ssm_dubbo_web.war
image: ssm_dubbo_web:0.1
container_name: ssm_dubbo_web
links:
- zoo:zoo
depends_on:
- zoo
ports:
- 8080:8080
restart: always
environment:
dubbo.registry.address: zookeeper://zoo:2181
db:
build: ./mysql/
image: db:0.1
container_name: db
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql:rw
- ./mysql/logs:/var/lib/mysql-logs:rw
- ./mysql/conf.d:/etc/mysql/conf.d:ro
- ./mysql/sql:/docker-entrypoint-initdb.d:ro
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ssm_dubbo_db
MYSQL_USER: ssm_dubbo_db
MYSQL_PASSWORD: 123456
restart: always
command: "--character-set-server=utf8"