-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yaml
153 lines (145 loc) · 5.56 KB
/
docker-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
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
version: '3.8'
services:
mimir:
env_file:
- './.env'
image: 'grafana/mimir:2.12.0'
volumes:
- '${MIMIR_CONFIG_PATH_LOCAL}:${MIMIR_CONFIG_PATH}'
entrypoint:
- '/bin/mimir'
- '-config.file=${MIMIR_CONFIG_PATH}/${MIMIR_CONFIG_FILE}'
ports:
- '${MIMIR_PORT}:${MIMIR_PORT}'
grafana:
env_file:
- './.env'
image: 'grafana/grafana:10.4.2'
volumes:
- '${GRAFANA_CONFIG_PATH_LOCAL}:${GRAFANA_CONFIG_PATH}'
- '${GRAFANA_DATASOURCES_PATH_LOCAL}:${GRAFANA_DATASOURCES_PATH}'
- '${GRAFANA_DASHBOARDS_PROVISIONING_PATH_LOCAL}:${GRAFANA_DASHBOARDS_PROVISIONING_PATH}'
- '${GRAFANA_DASHBOARDS_PATH_LOCAL}:${GRAFANA_DASHBOARDS_PATH}'
- '${GRAFANA_PLUGINS_PATH_LOCAL}:${GRAFANA_PLUGINS_PATH}'
- '${GRAFANA_PLUGINS_PROVISIONING_PATH_LOCAL}:${GRAFANA_PLUGINS_PROVISIONING_PATH}'
entrypoint:
- '${GRAFANA_HOME_PATH}/bin/grafana-server'
- '--homepath=${GRAFANA_HOME_PATH}'
- '--config=${GRAFANA_CONFIG_PATH}/${GRAFANA_CONFIG_FILE}'
ports:
- '${GRAFANA_PORT}:${GRAFANA_PORT}'
loki:
env_file:
- './.env'
image: 'grafana/loki:3.0.0'
command: '-config.file=${LOKI_CONFIG_PATH}/${LOKI_CONFIG_FILE}'
ports:
- '${LOKI_PORT}:${LOKI_PORT}'
tempo:
env_file:
- './.env'
image: 'grafana/tempo:2.4.1'
volumes:
- '${TEMPO_CONFIG_PATH_LOCAL}:${TEMPO_CONFIG_PATH}'
command:
- '-config.file=${TEMPO_CONFIG_PATH}/${TEMPO_CONFIG_FILE}'
- '-config.expand-env=true'
ports:
- '${TEMPO_PORT}:${TEMPO_PORT}'
alloy:
env_file:
- './.env'
image: 'grafana/alloy:v1.0.0'
volumes:
- '${ALLOY_CONFIG_PATH_LOCAL}:${ALLOY_CONFIG_PATH}'
entrypoint:
- '/bin/alloy'
- 'run'
- '--server.http.listen-addr=0.0.0.0:12345'
- '--config.extra-args="-config.expand-env"'
- '${ALLOY_CONFIG_PATH}/${ALLOY_CONFIG_FILE}'
ports:
- '${AGENT_PORT}:${AGENT_PORT}'
- '${AGENT_PORT_APP_RECEIVER}:${AGENT_PORT_APP_RECEIVER}'
- '${TEMPO_PORT_OTLP_RECEIVER}:${TEMPO_PORT_OTLP_RECEIVER}'
depends_on:
- 'mimir'
- 'grafana'
- 'loki'
- 'tempo'
database:
env_file:
- './.env'
image: 'postgres:latest'
volumes:
- 'db_data:/var/lib/postgresql/data'
environment:
POSTGRES_USER: '${DATABASE_USER}'
POSTGRES_PASSWORD: '${DATABASE_PASSWORD}'
POSTGRES_DB: '${DATABASE_NAME}'
ports:
- '${DATABASE_PORT}:${DATABASE_PORT}'
demo:
env_file:
- './.env'
profiles:
- 'demo'
volumes:
- './${DEMO_DEMO_PATH}:${DEMO_WORKSPACE_PATH}/${DEMO_DEMO_PATH}'
- './${DEMO_PACKAGES_PATH}:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_PATH}'
- 'demo_build_cache:${DEMO_WORKSPACE_PATH}/.cache'
- 'demo_node_modules:${DEMO_WORKSPACE_PATH}/node_modules'
- 'demo_demo_dist:${DEMO_WORKSPACE_PATH}/${DEMO_DEMO_PATH}/dist'
- 'demo_demo_logs:${DEMO_WORKSPACE_PATH}/${DEMO_DEMO_PATH}/${DEMO_SERVER_LOGS_PATH}'
- 'demo_demo_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_DEMO_PATH}/node_modules'
- 'demo_core_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_CORE_PATH}/dist'
- 'demo_core_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_CORE_PATH}/node_modules'
- 'demo_react_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_REACT_PATH}/dist'
- 'demo_react_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_REACT_PATH}/node_modules'
- 'demo_web_sdk_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_WEB_SDK_PATH}/dist'
- 'demo_web_sdk_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_WEB_SDK_PATH}/node_modules'
- 'demo_web_tracing_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_WEB_TRACING_PATH}/dist'
- 'demo_web_tracing_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_WEB_TRACING_PATH}/node_modules'
- 'demo_fetch_instrumentation_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_FETCH_INSTRUMENTATION_PATH}/dist'
- 'demo_fetch_instrumentation_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_FETCH_INSTRUMENTATION_PATH}/node_modules'
- 'demo_xhr_instrumentation_dist:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_XHR_INSTRUMENTATION_PATH}/dist'
- 'demo_xhr_instrumentation_node_modules:${DEMO_WORKSPACE_PATH}/${DEMO_PACKAGES_XHR_INSTRUMENTATION_PATH}/node_modules'
build:
context: '.'
args:
DEMO_WORKSPACE_PATH: '${DEMO_WORKSPACE_PATH}'
DEMO_DEMO_PATH: '${DEMO_DEMO_PATH}'
DEMO_PACKAGES_CORE_PATH: '${DEMO_PACKAGES_CORE_PATH}'
DEMO_PACKAGES_PATH: '${DEMO_PACKAGES_PATH}'
DEMO_PACKAGES_REACT_PATH: '${DEMO_PACKAGES_REACT_PATH}'
DEMO_PACKAGES_WEB_SDK_PATH: '${DEMO_PACKAGES_WEB_SDK_PATH}'
DEMO_PACKAGES_WEB_TRACING_PATH: '${DEMO_PACKAGES_WEB_TRACING_PATH}'
DEMO_PACKAGES_FETCH_INSTRUMENTATION_PATH: '${DEMO_PACKAGES_FETCH_INSTRUMENTATION_PATH}'
DEMO_PACKAGES_XHR_INSTRUMENTATION_PATH: '${DEMO_PACKAGES_XHR_INSTRUMENTATION_PATH}'
DEMO_PORT: '${DEMO_PORT}'
DEMO_PORT_HMR: '${DEMO_PORT_HMR}'
ports:
- '${DEMO_PORT}:${DEMO_PORT}'
- '${DEMO_PORT_HMR}:${DEMO_PORT_HMR}'
depends_on:
- 'alloy'
- 'database'
volumes:
db_data:
demo_build_cache:
demo_node_modules:
demo_demo_dist:
demo_demo_logs:
demo_demo_node_modules:
demo_core_dist:
demo_core_node_modules:
demo_react_dist:
demo_react_node_modules:
demo_web_sdk_dist:
demo_web_sdk_node_modules:
demo_web_tracing_dist:
demo_web_tracing_node_modules:
demo_fetch_instrumentation_dist:
demo_fetch_instrumentation_node_modules:
demo_xhr_instrumentation_dist:
demo_xhr_instrumentation_node_modules: