Add jaeger to dev docker

This commit is contained in:
Aode (lion) 2021-12-06 21:47:45 -06:00
parent 81d33a673f
commit ea41e5531c
3 changed files with 53 additions and 1 deletions

View file

@ -24,6 +24,7 @@ services:
depends_on:
- pictrs
- postgres
- otel
lemmy-ui:
image: dessalines/lemmy-ui:0.14.3
@ -49,8 +50,32 @@ services:
restart: always
pictrs:
image: asonix/pictrs:v0.2.6-r2
image: asonix/pictrs:0.3.0-beta.11
user: 991:991
environment:
- PICTRS_OPENTELEMETRY_URL=http://otel:4137
volumes:
- ./volumes/pictrs:/mnt
restart: always
depends_on:
- otel
otel:
image: otel/opentelemetry-collector:latest
command: --config otel-local-config.yaml
ports:
- "4317:4317"
volumes:
- type: bind
source: ./otel.yml
target: /otel-local-config.yaml
restart: always
depends_on:
- jaeger
jaeger:
image: jaegertracing/all-in-one:1
ports:
- "14250:14250"
- "16686:16686"
restart: always

25
docker/dev/otel.yml Normal file
View file

@ -0,0 +1,25 @@
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4137
processors:
batch:
exporters:
logging:
jaeger:
endpoint: jaeger:14250
insecure: true
service:
pipelines:
traces:
receivers:
- otlp
processors:
- batch
exporters:
- logging
- jaeger

View file

@ -11,6 +11,8 @@
site_name: "lemmy-test"
}
opentelemetry_url: "http://otel:4137"
# the domain name of your instance (eg "lemmy.ml")
hostname: "my_domain"
# address where lemmy should listen for incoming requests