Skip to content

Commit

Permalink
Add env vars to collector container
Browse files Browse the repository at this point in the history
  • Loading branch information
julianocosta89 committed Jul 11, 2024
1 parent 83a4ab7 commit 8ad427f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose-tests_include-override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ services:

otelcol:
command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-tracetest.yml" ]
environment:
- ENVOY_PORT
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP
volumes:
- ${DOCKER_SOCK}:/var/run/docker.sock:ro
- ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ services:
logging: *logging
environment:
- ENVOY_PORT
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP

# Prometheus
prometheus:
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ services:
logging: *logging
environment:
- ENVOY_PORT
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP

# Prometheus
prometheus:
Expand Down

0 comments on commit 8ad427f

Please sign in to comment.