Skip to content

Commit 528eb5d

Browse files
committed
explain otel collector log mounts
1 parent 6c6c147 commit 528eb5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-compose.base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,10 @@ services:
431431
image: otel/opentelemetry-collector-contrib:latest
432432
container_name: otel-collector-local
433433
command: [--config=/etc/otel-collector-config.yaml]
434-
user: '0:0'
434+
user: '0:0' # have to run as root to read the docker logs
435435
volumes:
436436
- ./otel-collector-config.dev.yaml:/etc/otel-collector-config.yaml
437+
# mount docker containers dir so we can ship the docker logs to local posthog
437438
- /var/lib/docker/containers:/var/lib/docker/containers:ro
438439
ports:
439440
- '4317:4317' # OTLP gRPC receiver (mapped to host)

0 commit comments

Comments
 (0)