-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
177 lines (162 loc) · 3.92 KB
/
docker-compose.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
version: '3.4'
x-logging: &default-logging
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
loki-pipeline-stages: |
- multiline:
firstline: '^\d{4}-\d{2}-\d{2} \d{1,2}:\d{2}:\d{2}'
max_wait_time: 3s
- regex:
expression: '^(?P<time>\d{4}-\d{2}-\d{2} \d{1,2}:\d{2}:\d{2},d{3}) (?P<message>(?s:.*))$$'
services:
loki:
image: grafana/loki:2.8.0
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
networks:
- api-network
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- cache:/data
networks:
- redis-network
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- ./data:/data/db
networks:
- mongo-network
auth:
build:
context: auth
dockerfile: Dockerfile
environment:
- MONGO_CLIENT=mongodb://mongodb:27017
networks:
- api-network
- mongo-network
scheduler:
image: tosanchez/atsc-meetings:scheduler-dev
environment:
- SPRING_APPLICATION_NAME=Scheduler
- SERVER_PORT=8080
- SPRINGDOC_SWAGGER_UI_PATH=/scheduler-docs
- MONGODB_URI=mongodb://mongodb:27017
- MONGODB_NAME=meetings
networks:
- api-network
- mongo-network
depends_on:
- auth
gateway:
build:
context: api-gateway
dockerfile: Dockerfile
depends_on:
- redis
- loki
ports:
- "80:80"
environment:
- 'GATEWAY_SERVICES=[{"name": "Auth", "base_url": "http://auth:8000"},
{"name": "Scheduler", "base_url": "http://scheduler:8080", "readiness_url": "/actuator/health"}]'
- REDIS_HOST=redis://redis:6379
- FASTAPI_USE_LIMITER=1
- FASTAPI_LIMITER_THRESHOLD=30
- FASTAPI_LIMITER_INTERVAL=60
- FASTAPI_USE_TELEMETRY=1
- FASTAPI_OTLP_GRPC_ENDPOINT=http://tempo:4317/
networks:
- api-network
- redis-network
- web-network
logging: *default-logging
prometheus:
image: prom/prometheus:v2.43.0
ports:
- "9090:9090"
volumes:
- ./etc/prometheus:/workspace
command:
- --config.file=/workspace/prometheus.yml
- --enable-feature=exemplar-storage
depends_on:
- loki
networks:
- api-network
logging: *default-logging
tempo:
image: grafana/tempo:2.0.1
command: [ "--target=all", "--storage.trace.backend=local", "--storage.trace.local.path=/var/tempo", "--auth.enabled=false" ]
ports:
- "14250:14250"
depends_on:
- loki
networks:
- api-network
logging: *default-logging
grafana:
image: grafana/grafana:9.4.7
ports:
- "3000:3000"
volumes:
- ./etc/grafana/:/etc/grafana/provisioning/datasources
- ./etc/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./etc/dashboards:/etc/grafana/dashboards
depends_on:
- loki
- prometheus
networks:
- api-network
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
GF_FEATURE_TOGGLES_ENABLE: "traceqlEditor"
logging: *default-logging
web:
environment:
- VITE_URL=http://127.0.0.1:80/api/v1/
build:
context: web
dockerfile: Dockerfile
args:
- VITE_URL=http://127.0.0.1:80/api/v1/
ports:
- "5173:5173"
depends_on:
- auth
- scheduler
networks:
- web-network
bot:
environment:
- TOKEN=6103437457:AAE4zwSvDGB7um2E1euk0-x0SMoSl69EbRc
- API_URL=http://gateway:80/api/v1/
build:
context: telegram-bot
dockerfile: Dockerfile
depends_on:
- auth
- scheduler
networks:
- web-network
volumes:
cache:
driver: local
networks:
api-network:
driver: bridge
redis-network:
driver: bridge
web-network:
driver: bridge
mongo-network:
driver: bridge