Sign inSign up

zededa/hello-margo-compose:1.0.0

Manifest digest

sha256:ecf8d6fa798b88969613947a20eff3312fb2d63051c4979a09b9c21513051dc9

Last pushed

3 months by matthiasl381

Type

Compose

Manifest digest

sha256:ecf8d6fa798b88969613947a20eff3312fb2d63051c4979a09b9c21513051dc9

Compose file content

# Docker Compose deployment for Hello Margo.
#
# This is the Compose component referenced by the Margo Application Description.
# It is published two ways (see the Makefile):
#   - docker-native, via `docker compose publish` → referenced by the legacy
#     `packageLocation` in margo.yaml (tag :1.0.0);
#   - as a Margo Compose Archive (Compose OCI SUP (#68)), via `oras push` of a single
#     `application/vnd.org.margo.component.compose.tar+gzip` layer → referenced
#     by `repository`+`revision` in the generated margo.oci.yaml (tag :1.0.0-margo).
#
# The margo-agent injects the OTEL environment variables at deploy time per the
# Margo observability spec. The margo-observability network is created by the
# device's observability stack and provides connectivity to the OTel collector.

services:
  hello-margo:
    image: ${HELLO_MARGO_IMAGE:-docker.io/zededa/hello-margo:1.0.0}
    restart: unless-stopped
    ports:
      - target: 8086
        published: "${HOST_PORT:-8086}"
    environment:
      PORT: "8086"
      GREETING: "${GREETING:-Hello}"
      GREETING_ADDRESSEE: "${GREETING_ADDRESSEE:-Margo :)}"
      # Margo-specified OTel environment variables.
      # These are injected by the margo-agent at deploy time.
      HTTP_OTEL_EXPORTER_OTLP_ENDPOINT: "${HTTP_OTEL_EXPORTER_OTLP_ENDPOINT:-}"
      GRPC_OTEL_EXPORTER_OTLP_ENDPOINT: "${GRPC_OTEL_EXPORTER_OTLP_ENDPOINT:-}"
      OTEL_EXPORTER_OTLP_PROTOCOL: "${OTEL_EXPORTER_OTLP_PROTOCOL:-}"
      OTEL_EXPORTER_OTLP_CERTIFICATE: "${OTEL_EXPORTER_OTLP_CERTIFICATE:-}"
    networks:
      - margo-observability

networks:
  margo-observability:
    name: margo-observability
    external: true
services:
  hello-margo:
    image: docker.io/zededa/hello-margo:1.0.0@sha256:5b775b50b313c8e846adbc05545b9b068f835a40ead93e6cef3ed882bf8c05ca

Docker commands

docker compose -f oci://zededa/hello-margo-compose:1.0.0 up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image


Pulls

2.3K

Stars

0

Last Updated

3 months