-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcompose.services.yml
196 lines (190 loc) · 7.26 KB
/
compose.services.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
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
services:
config-server:
image: config-server:latest
hostname: config-server
container_name: config-server
build:
context: .
dockerfile: ./config-server/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
SPRING_PROFILES_ACTIVE: default,native,docker
OTEL_RESOURCE_ATTRIBUTES: "service.name=config-server,deployment.environment=dev,service.namespace=config,service.version=1.0.0,service.instance.id=config-server:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
ports:
- 8888:8888
healthcheck:
test: curl --fail http://localhost:8890/actuator/health
interval: 5s
timeout: 4s
retries: 10
start_period: 5s
entrypoint: java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.configserver.ConfigServerApplication
discovery-server:
image: discovery-server:latest
hostname: discovery-server
container_name: discovery-server
build:
context: .
dockerfile: ./discovery-server/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- 8761:8761
environment:
CONFIG_SERVER_URL: http://config-server:8888
SPRING_PROFILES_ACTIVE: default,docker,json-logging
OTEL_RESOURCE_ATTRIBUTES: "service.name=discovery-server,deployment.environment=dev,service.namespace=discovery,service.version=1.0.0,service.instance.id=discovery-server:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
depends_on:
config-server:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8761/actuator/health
interval: 5s
timeout: 4s
retries: 10
start_period: 5s
entrypoint: java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.discoveryserver.DiscoveryServerApplication
api-gateway:
image: api-gateway:latest
hostname: api-gateway
container_name: api-gateway
build:
context: .
dockerfile: ./api-gateway/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- 8080:8080
environment:
CONFIG_SERVER_URL: http://config-server:8888
SPRING_PROFILES_ACTIVE: default,docker
OTEL_RESOURCE_ATTRIBUTES: "service.name=api-gateway,deployment.environment=dev,service.namespace=gateway,service.version=1.0.0,service.instance.id=api-gateway:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
depends_on:
config-server:
condition: service_healthy
discovery-server:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8080/actuator/health
interval: 5s
timeout: 4s
retries: 10
start_period: 5s
entrypoint: java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.apigateway.ApiGatewayApplication
smartbank-gateway:
image: smartbank-gateway:latest
hostname: smartbank-gateway
container_name: smartbank-gateway
build:
context: .
dockerfile: ./smartbank-gateway/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
CONFIG_SERVER_URL: http://config-server:8888
SPRING_PROFILES_ACTIVE: default,docker
OTEL_RESOURCE_ATTRIBUTES: "service.name=smartbank-gateway,deployment.environment=dev,service.namespace=gateway,service.version=1.0.0,service.instance.id=smartbank-gateway:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
depends_on:
config-server:
condition: service_healthy
discovery-server:
condition: service_healthy
postgres-smartbank:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8080/actuator/health
interval: 5s
timeout: 4s
retries: 10
start_period: 5s
entrypoint: java -Xmx4g -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.smartbank.SmartbankGatewayApplication
fraudetect-service:
image: fraudetect-service:latest
hostname: fraudetect
container_name: fraudetect
build:
context: .
dockerfile: ./fraudetect-service/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
CONFIG_SERVER_URL: http://config-server:8888
SPRING_PROFILES_ACTIVE: default,docker
SERVER_PORT: 8080
OTEL_RESOURCE_ATTRIBUTES: "service.name=fraudetect-service,deployment.environment=dev,service.namespace=service,service.version=1.0.0,service.instance.id=fraudetect-service:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
depends_on:
config-server:
condition: service_healthy
discovery-server:
condition: service_healthy
postgres-fraudetect:
condition: service_healthy
kafka:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8080/actuator/health
interval: 3s
timeout: 1s
retries: 5
start_period: 3s
entrypoint: java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.fraudetect.FraudetectServiceApplication
merchant-backoffice:
image: merchant-backoffice:latest
hostname: merchant-backoffice
container_name: merchant-backoffice
build:
context: .
dockerfile: ./merchant-backoffice/src/main/docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
environment:
CONFIG_SERVER_URL: http://config-server:8888
SPRING_PROFILES_ACTIVE: default,docker,json-logging
OTEL_RESOURCE_ATTRIBUTES: "service.name=merchant-backoffice,deployment.environment=dev,service.namespace=backoffice,service.version=1.0.0,service.instance.id=merchant-backoffice:8080"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: http://opentelemetry-collector:4317
volumes:
- ./instrumentation/opentelemetry-javaagent.jar:/opentelemetry-javaagent.jar
depends_on:
config-server:
condition: service_healthy
discovery-server:
condition: service_healthy
postgres-merchantbo:
condition: service_healthy
kafka:
condition: service_healthy
healthcheck:
test: curl --fail http://localhost:8080/actuator/health
interval: 3s
timeout: 1s
retries: 5
start_period: 3s
entrypoint: java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.worldline.easypay.merchantbo.MerchantBackofficeApplication