-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
105 lines (97 loc) · 2.65 KB
/
compose.yaml
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
version: "3.1"
services:
# ecommerce-api:
# build: ./
# ports:
# - "8080:8080"
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
# interval: 30s
# timeout: 10s
# retries: 5
# depends_on:
# db:
# condition: service_healthy
prometheus:
container_name: prometheus
image: prom/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./docker-config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9090/-/healthy" ]
interval: 10s
timeout: 10s
retries: 5
loki:
image: grafana/loki:latest
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3100/ready" ]
interval: 10s
timeout: 10s
retries: 5
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yml" ]
volumes:
- ./docker-config/tempo/tempo.yml:/etc/tempo.yml
ports:
- "3200:3200" # tempo
- "9411:9411" # zipkin
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3200/metrics" ]
interval: 10s
timeout: 10s
retries: 5
grafana:
container_name: grafana
image: grafana/grafana
volumes:
- ./docker-config/grafana/grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./docker-config/grafana/grafana-dashboards.yml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yml
- ./docker-config/grafana/dashboards:/etc/grafana/provisioning/dashboards
ports:
- "3000:3000"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/healthz" ]
interval: 10s
timeout: 10s
retries: 5
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: [ "redis-server", "--save", "''", "--appendonly", "no" ]
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 10s
retries: 5
postgres:
image: pgvector/pgvector:pg17
container_name: postgres_pgvector
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: ecommerce
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U root -d ecommerce" ]
interval: 10s
timeout: 10s
retries: 3
volumes:
redis_data:
postgres_data: