-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
81 lines (75 loc) · 1.82 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
version: '2.1'
services:
zipkin:
image: "openzipkin/zipkin"
hostname: zipkin
ports:
- "9411:9411"
company-bulletin-board:
image: "servicecomb/service-center"
hostname: service-center
ports:
- "30100:30100"
mysql:
image: "mysql/mysql-server:5.7"
hostname: mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=company
- MYSQL_USER=company
- MYSQL_PASSWORD=password
ports:
- "3306:3306"
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 3306 &> /dev/null; echo $$?"]
interval: 30s
timeout: 10s
retries: 5
company-worker:
image: "worker:0.3.0-SNAPSHOT"
hostname: worker
links:
- "company-bulletin-board:sc.servicecomb.io"
- "zipkin:zipkin.io"
environment:
- ARTIFACT_ID=worker
ports:
- "7070:7070"
- "8080:8080"
company-doorman:
image: "doorman:0.3.0-SNAPSHOT"
hostname: doorman
links:
- "company-bulletin-board:sc.servicecomb.io"
- "mysql:mysql.servicecomb.io"
- "zipkin:zipkin.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=prd
- ARTIFACT_ID=doorman
depends_on:
mysql:
condition: service_healthy
ports:
- "8081:8080"
company-beekeeper:
image: "beekeeper:0.3.0-SNAPSHOT"
hostname: beekeeper
links:
- "company-bulletin-board:sc.servicecomb.io"
- "zipkin:zipkin.io"
- "company-worker"
environment:
- ARTIFACT_ID=beekeeper
ports:
- "8082:8090"
company-manager:
image: "manager:0.3.0-SNAPSHOT"
hostname: manager
links:
- "company-bulletin-board:sc.servicecomb.io"
- "zipkin:zipkin.io"
environment:
- JAVA_OPTS=-Dserver.port=8080 #-Dlogging.level.root=DEBUG
- ARTIFACT_ID=manager
ports:
- "8083:8080"