forked from WillemJiang/seckill
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (63 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
70 lines (63 loc) · 1.77 KB
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
version: '2.0'
services:
mysql-write-db:
image: "mysql:latest"
hostname: write_db_server
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=seckill
- MYSQL_USER=seckill
- MYSQL_PASSWORD=password
ports:
- "3306"
mysql-read-db:
image: "mysql:latest"
hostname: read_db_server
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=seckill
- MYSQL_USER=seckill
- MYSQL_PASSWORD=password
ports:
- "3306"
activemq:
image: "webcenter/activemq:latest"
hostname: queue-server
ports:
- "61616"
admin-service:
image: "seckill-admin-service:0.2.0-SNAPSHOT"
hostname: admin-service
links:
- "mysql-write-db:write_db.servicecomb.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=prd -Dendpoints.shutdown.enabled=true
ports:
- "8081:8081"
command-service:
image: "seckill-command-service:0.2.0-SNAPSHOT"
hostname: command-service
links:
- "mysql-write-db:write_db.servicecomb.io"
- "activemq:queue.servicecomb.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=prd -Dendpoints.shutdown.enabled=true
ports:
- "8082:8082"
query-service:
image: "seckill-query-service:0.2.0-SNAPSHOT"
hostname: query-service
links:
- "mysql-write-db:read_db.servicecomb.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=prd -Dendpoints.shutdown.enabled=true
ports:
- "8083:8083"
event-service:
image: "seckill-event-service:0.2.0-SNAPSHOT"
hostname: event-service
links:
- "mysql-write-db:read_db.servicecomb.io"
- "activemq:queue.servicecomb.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=prd -Dendpoints.shutdown.enabled=true