-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (117 loc) · 2.96 KB
/
Copy pathdocker-compose.yml
File metadata and controls
126 lines (117 loc) · 2.96 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
services:
postgres:
image: postgres:16
env_file: .env.postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vici"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
opensearch:
image: opensearchproject/opensearch:2.19.4
env_file: .env.opensearch
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 5s
retries: 10
ports:
- "9200:9200"
jaeger-collector:
image: jaegertracing/jaeger:2.16.0
command: --config /etc/jaeger/collector-config.yaml
volumes:
- ./jaeger/collector-config.yaml:/etc/jaeger/collector-config.yaml
ports:
- "4317:4317"
- "4318:4318"
depends_on:
opensearch:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:13133/status || exit 1"]
interval: 10s
timeout: 5s
retries: 5
jaeger-query:
image: jaegertracing/jaeger:2.16.0
command: --config /etc/jaeger/query-config.yaml
env_file: .env.jaeger-query
volumes:
- ./jaeger/query-config.yaml:/etc/jaeger/query-config.yaml
ports:
- "16686:16686"
depends_on:
opensearch:
condition: service_healthy
jaeger-collector:
condition: service_started
app:
build: .
depends_on:
postgres:
condition: service_healthy
jaeger-collector:
condition: service_started
temporal:
condition: service_healthy
env_file: .env.app
volumes:
- ./src:/app/src
ports:
- "8000:8000"
command: >
sh -c "uv run alembic upgrade head && uv run uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload"
temporal:
image: temporalio/auto-setup:1.26.2
env_file: .env.temporal
ports:
- "7233:7233"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
temporal-ui:
image: temporalio/ui:latest
env_file: .env.temporal-ui
ports:
- "8080:8080"
depends_on:
- temporal
prometheus:
image: prom/prometheus:v3.1.0
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
depends_on:
- app
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:9090/-/healthy || exit 1"]
interval: 10s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:11.4.0
env_file: .env.grafana
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- prometheus
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
volumes:
grafana_data: