# This docker-compose file loads # nats with JetStream enabled # a local OCI registry # redis (for the kvredis capability provider) # grafana + tempo for tracing # wasmcloud_host version: "4" services: nats: image: nats:2.9.22-alpine ports: - "4222:4222" - "6222:6222" - "8222:8222" command: [ "-js" ] redis: image: redis:6.2 ports: - "6379:6379" registry: image: registry:2.7 ports: - "5000:5000" grafana: image: grafana/grafana:8.1.2 ports: - 5050:3000 volumes: - ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml environment: - GF_AUTH_ANONYMOUS_ENABLED=true - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin - GF_AUTH_DISABLE_LOGIN_FORM=true depends_on: - tempo tempo: image: grafana/tempo:1.1.0 command: ["-config.file=/etc/tempo.yaml"] volumes: - ./tempo.yaml:/etc/tempo.yaml ports: - 8000:8000 # tempo - 55681:55681 # otlp http wasmcloud: depends_on: - "nats" - "redis" - "grafana" - "tempo" image: wasmcloud/wasmcloud:latest environment: RUST_LOG: debug,hyper=info,async_nats=info,oci_distribution=info,cranelift_codegen=warn WASMCLOUD_LOG_LEVEL: debug WASMCLOUD_RPC_HOST: nats WASMCLOUD_CTL_HOST: nats WASMCLOUD_PROV_RPC_HOST: nats WASMCLOUD_OCI_ALLOWED_INSECURE: registry:5000 OTEL_TRACES_EXPORTER: otlp OTEL_EXPORTER_OTLP_ENDPOINT: http://tempo:55681 ports: - "8080-8089:8080-8089" # Allows exposing examples on ports 8080-8089 wadm: depends_on: - "nats" - "redis" image: ghcr.io/wasmcloud/wadm:latest environment: - WADM_NATS_SERVER=nats