-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
198 lines (182 loc) · 5.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
198 lines (182 loc) · 5.25 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
name: 'rollout-v5-stable'
services:
# ==========================================
# Edge Proxy (NGINX)
# ==========================================
nginx:
image: nginx:alpine
container_name: nginx
restart: always
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
command: [ "/bin/sh", "-c", "sleep 160 && nginx -g 'daemon off;'" ]
depends_on:
- launch
- ui
- test
- api-gateway
- registry-server
- grafana
# ==========================================
# Frontend Services
# ==========================================
launch:
image: rolloutio/launch-web:5.0.1
container_name: launch-web
restart: always
ui:
image: rolloutio/dashboard-app:5.0.1
container_name: dashboard-app
restart: always
test:
image: rolloutio/test-app:5.0.1
container_name: test-app
restart: always
# ==========================================
# Infrastructure Services
# ==========================================
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
restart: always
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
container_name: redis
restart: always
volumes:
- redis_data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
# ==========================================
# Monitoring Services
# ==========================================
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SERVER_DOMAIN=localhost
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/
- GF_SERVER_SERVE_FROM_SUB_PATH=true
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
# ==========================================
# Microservices (Rollout.io)
# ==========================================
registry-server:
image: rolloutio/registry-server:5.0.1
container_name: registry-server
restart: always
entrypoint: [ "sh", "-c", "sleep 30 && java -jar app.jar" ]
depends_on:
- prometheus
environment:
- EUREKA_HOSTNAME=registry-server
config-server:
image: rolloutio/config-server:5.0.1
container_name: config-server
restart: always
entrypoint: [ "sh", "-c", "sleep 60 && java -jar app.jar" ]
depends_on:
rabbitmq:
condition: service_healthy
registry-server:
condition: service_started
environment:
- RABBITMQ_HOST=rabbitmq
- EUREKA_URI=http://admin:admin123@registry-server:4999/eureka/
api-gateway:
image: rolloutio/api-gateway:5.0.1
container_name: api-gateway
restart: always
entrypoint: [ "sh", "-c", "sleep 150 && java -jar app.jar" ]
depends_on:
- config-server
- registry-server
- redis
- auth-service
- controlplane-service
- sdk-service
environment:
- REDIS_HOST=redis
- CONFIG_SERVER_URI=http://config:pass@config-server:4998
- EUREKA_URI=http://admin:admin123@registry-server:4999/eureka/
- EUREKA_HOSTNAME=api-gateway
auth-service:
image: rolloutio/auth-service:5.0.1
container_name: auth-service
restart: always
entrypoint: [ "sh", "-c", "sleep 100 && java -jar app.jar" ]
depends_on:
- config-server
- registry-server
- rabbitmq
environment:
- CONFIG_SERVER_URI=http://config:pass@config-server:4998
- EUREKA_URI=http://admin:admin123@registry-server:4999/eureka/
- EUREKA_HOSTNAME=auth-service
- RABBITMQ_HOST=rabbitmq
controlplane-service:
image: rolloutio/controlplane-service:5.0.1
container_name: controlplane-service
restart: always
entrypoint: [ "sh", "-c", "sleep 100 && java -jar app.jar" ]
depends_on:
- config-server
- registry-server
- rabbitmq
environment:
- CONFIG_SERVER_URI=http://config:pass@config-server:4998
- EUREKA_URI=http://admin:admin123@registry-server:4999/eureka/
- EUREKA_HOSTNAME=controlplane-service
- RABBITMQ_HOST=rabbitmq
sdk-service:
image: rolloutio/sdk-service:5.0.1
container_name: sdk-service
restart: always
entrypoint: [ "sh", "-c", "sleep 100 && java -jar app.jar" ]
depends_on:
- config-server
- registry-server
- redis
environment:
- REDIS_HOST=redis
- CONFIG_SERVER_URI=http://config:pass@config-server:4998
- EUREKA_URI=http://admin:admin123@registry-server:4999/eureka/
- EUREKA_HOSTNAME=sdk-service
networks:
default:
name: rollout-v5-stable-network
volumes:
rabbitmq_data:
redis_data:
prometheus_data:
grafana_data: