-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
120 lines (120 loc) · 3.01 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
112
113
114
115
116
117
118
119
120
version: '2.1'
services:
discovery-server:
image: "discovery-server:latest"
container_name: discovery-server
hostname: discovery-server
ports:
- "8761:8761"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761"]
interval: 30s
timeout: 10s
retries: 5
config-server:
image: "config-server:latest"
container_name: config-server
hostname: config-server
ports:
- "8888:8888"
depends_on:
discovery-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/verb/native"]
interval: 30s
timeout: 10s
retries: 5
adjective-service:
image: "adjective-service:latest"
ports:
- "9020:9020"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9020
restart: always
article-service:
image: "article-service:latest"
container_name: article-service
ports:
- "9030:9030"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9030
restart: always
noun-service:
image: "noun-service:latest"
container_name: noun-service
ports:
- "9040:9040"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9040
restart: always
verb-service:
image: "verb-service:latest"
container_name: verb-service
ports:
- "9000:9000"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9000
restart: always
subject-service:
image: "subject-service:latest"
container_name: subject-service
ports:
- "9010:9010"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9010
restart: always
sentence-service:
image: "sentence-service:latest"
container_name: sentence
ports:
- "9050:9050"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 9050
restart: always
services-monitoring:
image: "services-monitoring:latest"
container_name: services-monitoring
hostname: services-monitoring
ports:
- "8070:8070"
depends_on:
config-server:
condition: service_healthy
environment:
DISCOVERY_HOST: discovery-server
CONFIG_SERVER_HOST: config-server
SERVER_PORT: 8070
restart: always