-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (34 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
37 lines (34 loc) · 1.08 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
services:
postgres16:
image: postgres:16
volumes:
- postgres16_data:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
prometheus:
image: prom/prometheus:v2.55.1
command:
# These 4 arguments are original found in the Dockerfile.
# See https://github.com/prometheus/prometheus/blob/v2.55.1/Dockerfile#L25
# Since we have to add extra arguments, we need to repeat them here.
# See https://prometheus.io/docs/prometheus/latest/installation/#setting-command-line-parameters
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
# Enable remote write
- "--web.enable-remote-write-receiver"
ports:
- "9090:9090"
otelcol:
image: otel/opentelemetry-collector-contrib:0.122.1
volumes:
- ./otelcol-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "4317:4317"
- "4318:4318"
volumes:
postgres16_data:
driver: local