-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (76 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (76 loc) · 1.7 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
version: '3.9'
services:
app:
build: .
container_name: ecommerce-api
env_file:
- .env
ports:
- '5004:5004'
depends_on:
postgres:
condition: service_healthy
jaeger:
condition: service_started
networks:
- backend
- observability
restart: unless-stopped
postgres:
image: postgres:15
container_name: ecommerce-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
POSTGRES_DB: ecommerce
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
networks:
- backend
prometheus:
image: prom/prometheus:v2.53.0
container_name: ecommerce-prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- '9090:9090'
networks:
- observability
grafana:
image: grafana/grafana:11.1.0
container_name: ecommerce-grafana
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
depends_on:
- prometheus
networks:
- observability
jaeger:
image: jaegertracing/all-in-one:1.58
container_name: ecommerce-jaeger
environment:
COLLECTOR_OTLP_ENABLED: 'true'
ports:
- '16686:16686'
- '4317:4317'
- '4318:4318'
networks:
- observability
networks:
backend:
observability:
volumes:
postgres_data:
grafana_data: