-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
107 lines (98 loc) · 3 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
106
107
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker Compose reference guide at
# https://docs.docker.com/go/compose-spec-reference/
# Here the instructions define your application as a service called "app".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
services:
frontend:
build:
context: apps/frontend
additional_contexts:
parent: .
environment:
NODE_ENV: production
ports:
- 3000:3000
backend:
build:
context: apps/backend
additional_contexts:
parent: .
environment:
NODE_ENV: production
ports:
- 8080:8080
microservice:
build:
context: apps/microservice
additional_contexts:
parent: .
environment:
NODE_ENV: production
otel-collector:
image: otel/opentelemetry-collector-contrib
volumes:
- ./config/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the Collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension
# Tempo runs as user 10001, and docker compose creates the volume as root.
# As such, we need to chown the volume in order for Tempo to start correctly.
init:
image: &tempoImage grafana/tempo:latest
user: root
entrypoint:
- 'chown'
- '10001:10001'
- '/var/tempo'
volumes:
- ./tempo-data:/var/tempo
tempo:
image: *tempoImage
command: ['-config.file=/etc/tempo.yaml']
volumes:
- ./config/tempo.yaml:/etc/tempo.yaml
- ./tempo-data:/var/tempo
ports:
- '14268' # jaeger ingest
- '3200' # tempo
- '4317' # otlp grpc
- '4318' # otlp http
- '9411' # zipkin
depends_on:
- init
prometheus:
image: prom/prometheus:latest
command:
- --config.file=/etc/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
- --enable-feature=native-histograms
volumes:
- ./config/prometheus.yaml:/etc/prometheus.yaml
ports:
- '9090:9090'
grafana:
image: grafana/grafana:11.0.0
volumes:
- ./config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
ports:
- '3001:3000'
loki:
image: grafana/loki:3.1.0
command: -config.file=/etc/loki/local-config.yaml -log.level=debug
volumes:
- ./config/loki.yaml:/etc/loki/config.yaml