-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
638 lines (617 loc) · 20.9 KB
/
compose.yaml
File metadata and controls
638 lines (617 loc) · 20.9 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
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
version: "3.8"
services:
# Traefik Reverse Proxy
traefik:
image: traefik:v3.0
container_name: iqscaffold-traefik
command:
- --configfile=/etc/traefik/traefik.yml
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "8080:8080" # Traefik Dashboard & Gateway
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./docker/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
- traefik_letsencrypt:/letsencrypt
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=web"
restart: unless-stopped
# PostgreSQL Database for User Service
postgres-user:
image: postgres:15-alpine
container_name: iqscaffold-postgres-user
environment:
POSTGRES_DB: iqscaffold_user
POSTGRES_USER: iqscaffold_user
POSTGRES_PASSWORD: iqscaffold_password
expose:
- "5432"
volumes:
- postgres_user_data:/var/lib/postgresql/data
- ./docker/postgres/init-user.sql:/docker-entrypoint-initdb.d/init-user.sql
networks:
- iqscaffold-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U iqscaffold_user -d iqscaffold_user"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# PostgreSQL Database for Billing Service
postgres-billing:
image: postgres:15-alpine
container_name: iqscaffold-postgres-billing
environment:
POSTGRES_DB: iqscaffold_billing
POSTGRES_USER: iqscaffold_billing
POSTGRES_PASSWORD: iqscaffold_password
expose:
- "5432"
volumes:
- postgres_billing_data:/var/lib/postgresql/data
- ./docker/postgres/init-billing.sql:/docker-entrypoint-initdb.d/init-billing.sql
networks:
- iqscaffold-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U iqscaffold_billing -d iqscaffold_billing"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# PostgreSQL Database for Contact Service
postgres-contact:
image: postgres:15-alpine
container_name: iqscaffold-postgres-contact
environment:
POSTGRES_DB: iqscaffold_contact
POSTGRES_USER: iqscaffold_contact
POSTGRES_PASSWORD: iqscaffold_password
expose:
- "5432"
volumes:
- postgres_contact_data:/var/lib/postgresql/data
- ./docker/postgres/init-contact.sql:/docker-entrypoint-initdb.d/init-contact.sql
networks:
- iqscaffold-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U iqscaffold_contact -d iqscaffold_contact"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# PostgreSQL Database for Lead Service
postgres-lead:
image: postgres:15-alpine
container_name: iqscaffold-postgres-lead
environment:
POSTGRES_DB: iqscaffold_lead
POSTGRES_USER: iqscaffold_lead
POSTGRES_PASSWORD: iqscaffold_password
expose:
- "5432"
volumes:
- postgres_lead_data:/var/lib/postgresql/data
- ./docker/postgres/init-lead.sql:/docker-entrypoint-initdb.d/init-lead.sql
networks:
- iqscaffold-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U iqscaffold_lead -d iqscaffold_lead"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# PostgreSQL Database for Pipeline Service
postgres-pipeline:
image: postgres:15-alpine
container_name: iqscaffold-postgres-pipeline
environment:
POSTGRES_DB: iqscaffold_pipeline
POSTGRES_USER: iqscaffold_pipeline
POSTGRES_PASSWORD: iqscaffold_password
expose:
- "5432"
volumes:
- postgres_pipeline_data:/var/lib/postgresql/data
- ./docker/postgres/init-pipeline.sql:/docker-entrypoint-initdb.d/init-pipeline.sql
networks:
- iqscaffold-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U iqscaffold_pipeline -d iqscaffold_pipeline"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# Redis for Caching and Sessions
redis:
image: redis:7-alpine
container_name: iqscaffold-redis
expose:
- "6379"
volumes:
- redis_data:/data
networks:
- iqscaffold-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
command: redis-server --appendonly yes
# RabbitMQ for Message Queue
rabbitmq:
image: rabbitmq:3.13-management-alpine
container_name: iqscaffold-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: iqscaffold
RABBITMQ_DEFAULT_PASS: iqscaffold_password
RABBITMQ_DEFAULT_VHOST: /
expose:
- "5672" # AMQP port
- "15672" # Management UI
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- ./docker/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.rabbitmq.rule=Host(`rabbitmq.localhost`)"
- "traefik.http.routers.rabbitmq.entrypoints=web"
- "traefik.http.services.rabbitmq.loadbalancer.server.port=15672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# MailHog for Email Testing in Local Development
mailhog:
image: mailhog/mailhog:latest
container_name: iqscaffold-mailhog
expose:
- "1025" # SMTP port
- "8025" # Web UI
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailhog.rule=Host(`mailhog.localhost`)"
- "traefik.http.routers.mailhog.entrypoints=web"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
restart: unless-stopped
# User Service
user-service:
build:
context: .
dockerfile: iqscaffold-user-service/Dockerfile
container_name: iqscaffold-user-service
environment:
SPRING_PROFILES_ACTIVE: local
IQSCAFFOLD_DATABASE_URL: jdbc:postgresql://postgres-user:5432/iqscaffold_user
IQSCAFFOLD_DATABASE_USERNAME: iqscaffold_user
IQSCAFFOLD_DATABASE_PASSWORD: iqscaffold_password
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
IQSCAFFOLD_MESSAGING_RABBITMQ_HOST: rabbitmq
IQSCAFFOLD_MESSAGING_RABBITMQ_PORT: 5672
IQSCAFFOLD_MESSAGING_RABBITMQ_USERNAME: iqscaffold
IQSCAFFOLD_MESSAGING_RABBITMQ_PASSWORD: iqscaffold_password
IQSCAFFOLD_AUTH_JWT_SECRET: your-256-bit-secret-key-here-change-in-production
IQSCAFFOLD_AUTH_JWT_EXPIRATION: 900
IQSCAFFOLD_AUTH_JWT_REFRESH_EXPIRATION: 604800
expose:
- "8080"
depends_on:
postgres-user:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.user-service.rule=Host(`user-service.localhost`) || PathPrefix(`/api/users`)"
- "traefik.http.routers.user-service.entrypoints=gateway"
- "traefik.http.services.user-service.loadbalancer.server.port=8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Billing Service
billing-service:
build:
context: .
dockerfile: iqscaffold-billing-service/Dockerfile
container_name: iqscaffold-billing-service
environment:
SPRING_PROFILES_ACTIVE: local
# Database Configuration
IQSCAFFOLD_DATABASE_URL: jdbc:postgresql://postgres-billing:5432/iqscaffold_billing
IQSCAFFOLD_DATABASE_USERNAME: iqscaffold_billing
IQSCAFFOLD_DATABASE_PASSWORD: iqscaffold_password
# Cache Configuration
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
# Messaging Configuration
IQSCAFFOLD_MESSAGING_RABBITMQ_HOST: rabbitmq
IQSCAFFOLD_MESSAGING_RABBITMQ_PORT: 5672
IQSCAFFOLD_MESSAGING_RABBITMQ_USERNAME: iqscaffold
IQSCAFFOLD_MESSAGING_RABBITMQ_PASSWORD: iqscaffold_password
# Service Integration
IQSCAFFOLD_USER_SERVICE_URL: http://user-service:8080
EMAIL_SERVICE_URL: http://email-service:8080
# Email Configuration (MailHog for local development)
SMTP_HOST: mailhog
SMTP_PORT: 1025
EMAIL_FROM_EMAIL: billing@iqscaffold.local
EMAIL_FROM_NAME: IQ Scaffold Billing (Local)
APP_BASE_URL: http://localhost:80
# JWT Configuration
JWT_ISSUER: iqscaffold-user-service
# Payment Configuration
PAYMENT_PROVIDER: stripe
BILLING_SAAS_MODE: "true"
# Stripe Configuration
STRIPE_API_KEY: ${STRIPE_API_KEY:-sk_test_placeholder}
STRIPE_PUBLIC_KEY: ${STRIPE_PUBLIC_KEY:-pk_test_placeholder}
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY:-sk_test_placeholder}
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET:-whsec_placeholder}
STRIPE_CLIENT_ID: ${STRIPE_CLIENT_ID:-ca_test_placeholder}
STRIPE_CONNECT_CLIENT_ID: ${STRIPE_CONNECT_CLIENT_ID:-ca_test_placeholder}
# Notification Configuration
BILLING_EMAIL_NOTIFICATIONS: "true"
BILLING_WEBHOOK_NOTIFICATIONS: "true"
expose:
- "8080"
depends_on:
postgres-billing:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
user-service:
condition: service_healthy
mailhog:
condition: service_started
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.billing-service.rule=Host(`billing-service.localhost`) || PathPrefix(`/api/billing`)"
- "traefik.http.routers.billing-service.entrypoints=gateway"
- "traefik.http.services.billing-service.loadbalancer.server.port=8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Contact Service
contact-service:
build:
context: .
dockerfile: iqscaffold-contact-service/Dockerfile
container_name: iqscaffold-contact-service
environment:
SPRING_PROFILES_ACTIVE: local
SPRING_APPLICATION_NAME: iqscaffold-contact-service
# Database Configuration
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-contact:5432/iqscaffold_contact
SPRING_DATASOURCE_USERNAME: iqscaffold_contact
SPRING_DATASOURCE_PASSWORD: iqscaffold_password
# Cache Configuration
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
# Messaging Configuration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: iqscaffold
SPRING_RABBITMQ_PASSWORD: iqscaffold_password
SPRING_RABBITMQ_VIRTUAL_HOST: /
# JWT Configuration
USER_SERVICE_URL: http://user-service:8080
JWT_ISSUER: iqscaffold-user-service
# Multi-tenancy Configuration
IQSCAFFOLD_TENANT_ID_HEADER: X-Tenant-ID
expose:
- "8080"
depends_on:
postgres-contact:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
user-service:
condition: service_healthy
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.contact-service.rule=Host(`contact-service.localhost`) || PathPrefix(`/api/contacts`)"
- "traefik.http.routers.contact-service.entrypoints=gateway"
- "traefik.http.services.contact-service.loadbalancer.server.port=8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Lead Service
lead-service:
build:
context: .
dockerfile: iqscaffold-lead-service/Dockerfile
container_name: iqscaffold-lead-service
environment:
SPRING_PROFILES_ACTIVE: local
SPRING_APPLICATION_NAME: iqscaffold-lead-service
# Database Configuration
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-lead:5432/iqscaffold_lead
SPRING_DATASOURCE_USERNAME: iqscaffold_lead
SPRING_DATASOURCE_PASSWORD: iqscaffold_password
# Cache Configuration
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
# Messaging Configuration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: iqscaffold
SPRING_RABBITMQ_PASSWORD: iqscaffold_password
SPRING_RABBITMQ_VIRTUAL_HOST: /
# JWT Configuration
USER_SERVICE_URL: http://user-service:8080
JWT_ISSUER: iqscaffold-user-service
# Multi-tenancy Configuration
IQSCAFFOLD_TENANT_ID_HEADER: X-Tenant-ID
# Lead Configuration
LEAD_ENABLE_AUTO_SCORING: true
LEAD_ENABLE_AUTO_QUALIFICATION: false
expose:
- "8080"
depends_on:
postgres-lead:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
user-service:
condition: service_healthy
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.lead-service.rule=Host(`lead-service.localhost`) || PathPrefix(`/api/leads`)"
- "traefik.http.routers.lead-service.entrypoints=gateway"
- "traefik.http.services.lead-service.loadbalancer.server.port=8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Pipeline Service
pipeline-service:
build:
context: .
dockerfile: iqscaffold-pipeline-service/Dockerfile
container_name: iqscaffold-pipeline-service
environment:
SPRING_PROFILES_ACTIVE: local
SPRING_APPLICATION_NAME: iqscaffold-pipeline-service
# Database Configuration
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-pipeline:5432/iqscaffold_pipeline
SPRING_DATASOURCE_USERNAME: iqscaffold_pipeline
SPRING_DATASOURCE_PASSWORD: iqscaffold_password
# Cache Configuration
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
# Messaging Configuration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: iqscaffold
SPRING_RABBITMQ_PASSWORD: iqscaffold_password
SPRING_RABBITMQ_VIRTUAL_HOST: /
# JWT Configuration
USER_SERVICE_URL: http://user-service:8080
JWT_ISSUER: iqscaffold-user-service
# Lead Service Integration
LEAD_SERVICE_URL: http://lead-service:8080
# Multi-tenancy Configuration
IQSCAFFOLD_TENANT_ID_HEADER: X-Tenant-ID
expose:
- "8080"
depends_on:
postgres-pipeline:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
user-service:
condition: service_healthy
lead-service:
condition: service_healthy
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.pipeline-service.rule=Host(`pipeline-service.localhost`) || PathPrefix(`/api/pipeline`)"
- "traefik.http.routers.pipeline-service.entrypoints=gateway"
- "traefik.http.services.pipeline-service.loadbalancer.server.port=8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Gateway Service
gateway-service:
build:
context: .
dockerfile: iqscaffold-gateway-service/Dockerfile
container_name: iqscaffold-gateway-service
environment:
SPRING_PROFILES_ACTIVE: local
IQSCAFFOLD_CACHE_REDIS_HOST: redis
IQSCAFFOLD_CACHE_REDIS_PORT: 6379
IQSCAFFOLD_MESSAGING_RABBITMQ_HOST: rabbitmq
IQSCAFFOLD_MESSAGING_RABBITMQ_PORT: 5672
IQSCAFFOLD_MESSAGING_RABBITMQ_USERNAME: iqscaffold
IQSCAFFOLD_MESSAGING_RABBITMQ_PASSWORD: iqscaffold_password
IQSCAFFOLD_GATEWAY_ROUTING_USER_SERVICE_URI: http://user-service:8080
IQSCAFFOLD_GATEWAY_ROUTING_BILLING_SERVICE_URI: http://billing-service:8080
IQSCAFFOLD_GATEWAY_ROUTING_CONTACT_SERVICE_URI: http://contact-service:8080
IQSCAFFOLD_GATEWAY_ROUTING_LEAD_SERVICE_URI: http://lead-service:8080
IQSCAFFOLD_GATEWAY_ROUTING_PIPELINE_SERVICE_URI: http://pipeline-service:8080
IQSCAFFOLD_GATEWAY_RATE_LIMITING_ENABLED: true
IQSCAFFOLD_GATEWAY_RATE_LIMITING_REQUESTS_PER_MINUTE: 100
expose:
- "8080"
depends_on:
user-service:
condition: service_healthy
billing-service:
condition: service_healthy
contact-service:
condition: service_healthy
lead-service:
condition: service_healthy
pipeline-service:
condition: service_healthy
redis:
condition: service_healthy
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.gateway-service.rule=Host(`gateway.localhost`) || Host(`localhost`)"
- "traefik.http.routers.gateway-service.entrypoints=web"
- "traefik.http.services.gateway-service.loadbalancer.server.port=8080"
- "traefik.http.routers.gateway-service.priority=1"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# Observability Stack - Prometheus
prometheus:
image: prom/prometheus:latest
container_name: iqscaffold-prometheus
expose:
- "9090"
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.prometheus.rule=Host(`prometheus.localhost`)"
- "traefik.http.routers.prometheus.entrypoints=web"
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
- "--storage.tsdb.retention.time=200h"
- "--web.enable-lifecycle"
# Observability Stack - Grafana
grafana:
image: grafana/grafana:latest
container_name: iqscaffold-grafana
expose:
- "3000"
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- grafana_data:/var/lib/grafana
- ./docker/grafana/provisioning:/etc/grafana/provisioning
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.localhost`)"
- "traefik.http.routers.grafana.entrypoints=web"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
depends_on:
- prometheus
# Observability Stack - Loki
loki:
image: grafana/loki:latest
container_name: iqscaffold-loki
expose:
- "3100"
volumes:
- ./docker/loki/loki-config.yml:/etc/loki/local-config.yaml
- loki_data:/loki
networks:
- iqscaffold-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.loki.rule=Host(`loki.localhost`)"
- "traefik.http.routers.loki.entrypoints=web"
- "traefik.http.services.loki.loadbalancer.server.port=3100"
command: -config.file=/etc/loki/local-config.yaml
# Observability Stack - Promtail
promtail:
image: grafana/promtail:latest
container_name: iqscaffold-promtail
volumes:
- ./docker/promtail/promtail-config.yml:/etc/promtail/config.yml
- /var/log:/var/log:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
networks:
- iqscaffold-network
depends_on:
- loki
command: -config.file=/etc/promtail/config.yml
networks:
iqscaffold-network:
driver: bridge
name: iqscaffold-network
volumes:
traefik_letsencrypt:
name: iqscaffold_traefik_letsencrypt
postgres_user_data:
name: iqscaffold_postgres_user_data
postgres_billing_data:
name: iqscaffold_postgres_billing_data
postgres_contact_data:
name: iqscaffold_postgres_contact_data
postgres_lead_data:
name: iqscaffold_postgres_lead_data
postgres_pipeline_data:
name: iqscaffold_postgres_pipeline_data
redis_data:
name: iqscaffold_redis_data
rabbitmq_data:
name: iqscaffold_rabbitmq_data
prometheus_data:
name: iqscaffold_prometheus_data
grafana_data:
name: iqscaffold_grafana_data
loki_data:
name: iqscaffold_loki_data