-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.remote.yml
More file actions
71 lines (66 loc) · 2.6 KB
/
docker-compose.remote.yml
File metadata and controls
71 lines (66 loc) · 2.6 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
services:
otel-collector:
image: otel/opentelemetry-collector-contrib:0.104.0
container_name: commerce-otel-collector-remote
command: ["--config=/etc/otelcol-contrib/config.yaml"]
volumes:
- ./observability/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
depends_on:
- tempo
ports:
- "4317:4317"
- "4318:4318"
- "8888:8888"
tempo:
image: grafana/tempo:2.6.1
container_name: commerce-tempo-remote
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./observability/tempo.yaml:/etc/tempo.yaml:ro
ports:
- "3200:3200"
loki:
image: grafana/loki:3.1.1
container_name: commerce-loki-remote
command: ["-config.file=/etc/loki/config.yaml"]
volumes:
- ./observability/loki-config.yaml:/etc/loki/config.yaml:ro
- loki_remote_data:/loki
ports:
- "3100:3100"
prometheus:
image: prom/prometheus:v2.53.1
container_name: commerce-prometheus-remote
entrypoint: ["/bin/sh", "-c"]
environment:
REMOTE_SERVER_ADDRESS: ${REMOTE_SERVER_ADDRESS:?REMOTE_SERVER_ADDRESS is required}
REMOTE_APP_SCHEME: ${REMOTE_APP_SCHEME:-http}
REMOTE_APP_PORT: ${REMOTE_APP_PORT:-8000}
REMOTE_METRICS_PATH: ${REMOTE_METRICS_PATH:-/metrics}
command:
- 'sed -e "s|__REMOTE_SERVER_ADDRESS__|$${REMOTE_SERVER_ADDRESS}|g" -e "s|__REMOTE_APP_SCHEME__|$${REMOTE_APP_SCHEME}|g" -e "s|__REMOTE_APP_PORT__|$${REMOTE_APP_PORT}|g" -e "s|__REMOTE_METRICS_PATH__|$${REMOTE_METRICS_PATH}|g" /etc/prometheus/prometheus.remote.yml.tmpl > /tmp/prometheus.yml && /bin/prometheus --config.file=/tmp/prometheus.yml --storage.tsdb.path=/prometheus --web.console.libraries=/etc/prometheus/console_libraries --web.console.templates=/etc/prometheus/consoles'
volumes:
- ./observability/prometheus.remote.yml.tmpl:/etc/prometheus/prometheus.remote.yml.tmpl:ro
- ./observability/prometheus-alerts:/etc/prometheus/alerts:ro
depends_on:
- otel-collector
ports:
- "9090:9090"
grafana:
image: grafana/grafana:11.1.0
container_name: commerce-grafana-remote
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- ./observability/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./observability/grafana/provisioning/dashboards/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml:ro
- ./observability/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
- prometheus
- tempo
- loki
ports:
- "3000:3000"
volumes:
loki_remote_data: