-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (37 loc) · 1.08 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
services:
# Collector
otel-collector:
image: "otel/opentelemetry-collector-contrib:0.109.0"
command: [ "--config=/etc/otel-collector-config.yaml" ]
profiles:
- otel-contrib
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-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
lgtm:
image: grafana/otel-lgtm
container_name: lgtm
ports:
- "3000:3000"
- "4317:4317"
postgres:
image: postgres
# set shared memory limit when using docker-compose
shm_size: 128mb
ports:
- "5432:5432"
# or set shared memory limit when deploy via swarm stack
volumes:
- ./pg_data/init.sql:/docker-entrypoint-initdb.d/init.sql
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: otel
POSTGRES_USER: otel
POSTGRES_DB: otel