Docker deployment


  • Docker
  • Docker Compose v2.0.0+
  • Make (optional)
  • 6 GB of RAM for the application

Get and run the demo

  1. Clone the Demo repository:

    git clone
  2. Change to the demo folder:

    cd opentelemetry-demo/
  3. Start the demo1:

    make start
    docker compose up --force-recreate --remove-orphans --detach
  4. (Optional) Enable API observability-driven testing1:

    make start-odd
    docker compose --profile odd up --force-recreate --remove-orphans --detach

Verify the web store and Telemetry

Once the images are built and containers are started you can access:

Changing the demo’s primary port number

By default, the demo application will start a proxy for all browser traffic bound to port 8080. To change the port number, set the ENVOY_PORT environment variable before starting the demo.

  • For example, to use port 80811:

    ENVOY_PORT=8081 make start
    ENVOY_PORT=8081 docker compose up --force-recreate --remove-orphans --detach

Bring your own backend

Likely you want to use the web store as a demo application for an observability backend you already have (e.g., an existing instance of Jaeger, Zipkin, or one of the vendors of your choice).

OpenTelemetry Collector can be used to export telemetry data to multiple backends. By default, the collector in the demo application will merge the configuration from two files:

  • otelcol-config.yml
  • otelcol-config-extras.yml

To add your backend, open the file src/otelcollector/otelcol-config-extras.yml with an editor.

  • Start by adding a new exporter. For example, if your backend supports OTLP over HTTP, add the following:

        endpoint: <your-endpoint-url>
  • Then override the exporters for telemetry pipelines that you want to use for your backend.

          exporters: [spanmetrics, otlphttp/example]

Vendor backends might require you to add additional parameters for authentication, please check their documentation. Some backends require different exporters, you may find them and their documentation available at opentelemetry-collector-contrib/exporter.

After updating the otelcol-config-extras.yml, start the demo by running make start. After a while, you should see the traces flowing into your backend as well.

  1. docker-compose is deprecated. For details, see Migrate to Compose V2↩︎ ↩︎ ↩︎