-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (76 loc) · 2.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (76 loc) · 2.33 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
include:
- docker-compose.infra.yml
services:
payment-service:
platform: ${DOCKER_PLATFORM:-linux/arm64}
build:
context: .
dockerfile: payment-service/Dockerfile
image: jmr/payment-service:local
env_file: .env
environment:
SPRING_PROFILES_ACTIVE: default
POSTGRES_USER: ${POSTGRES_USER:-payments}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-payments}
JWT_SECRET: ${JWT_SECRET}
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4317}
OTEL_SERVICE_NAME: payment-service
OTEL_TRACES_EXPORTER: otlp
OTEL_METRICS_EXPORTER: otlp
OTEL_LOGS_EXPORTER: otlp
OTEL_RESOURCE_ATTRIBUTES: service.version=0.1.0,service.namespace=jmr
ports:
- "${PORT_PAYMENT:-18081}:8081"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
schema-registry:
condition: service_healthy
otel-collector:
condition: service_started
networks:
app-net:
ipv4_address: 172.20.0.10
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:8081/actuator/health || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
notification-service:
platform: ${DOCKER_PLATFORM:-linux/arm64}
build:
context: .
dockerfile: notification-service/Dockerfile
image: jmr/notification-service:local
env_file: .env
environment:
SPRING_PROFILES_ACTIVE: default
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4317}
OTEL_SERVICE_NAME: notification-service
OTEL_TRACES_EXPORTER: otlp
OTEL_METRICS_EXPORTER: otlp
OTEL_LOGS_EXPORTER: otlp
OTEL_RESOURCE_ATTRIBUTES: service.version=0.1.0,service.namespace=jmr
ports:
- "${PORT_NOTIFICATION:-18082}:8082"
depends_on:
kafka:
condition: service_healthy
schema-registry:
condition: service_healthy
otel-collector:
condition: service_started
networks:
app-net:
ipv4_address: 172.20.0.11
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:8082/actuator/health || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s