-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (84 loc) · 2.31 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# This docker-compose file starts an entire wasmCloud ecosystem, including:
# a NATS server
# a local OCI registry
# grafana + prometheus + tempo for metrics and tracing
# a wasmCloud host
# a WADM server for managing applications
version: "3"
services:
nats:
image: nats:2.10-alpine
ports:
- "4222:4222"
- "6222:6222"
- "8222:8222"
command: ["-js"]
registry:
image: registry:2.8
ports:
- "5000:5000"
grafana:
image: grafana/grafana:10.0.10
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:
- prometheus
- tempo
otelcol:
depends_on:
- prometheus
- tempo
image: otel/opentelemetry-collector-contrib:0.93.0
ports:
- 4317:4317
- 4318:4318
command:
- "--config=/etc/otelcol/config.yaml"
volumes:
- ./otel-collector.yaml:/etc/otelcol/config.yaml
prometheus:
image: prom/prometheus:v2.49.1
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.enable-remote-write-receiver'
- '--enable-feature=native-histograms'
ports:
- 9090:9090
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
tempo:
image: grafana/tempo:2.3.1
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./tempo.yaml:/etc/tempo.yaml
ports:
- 4318 # This port is used for sending traces from otel-collector to tempo
- 7999:7999 # tempo
wasmcloud:
depends_on:
- "nats"
- "otelcol"
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_ALLOW_FILE_LOAD: "true"
WASMCLOUD_OCI_ALLOWED_INSECURE: registry:5000
OTEL_TRACES_EXPORTER: otlp
ports:
- "8000-8100:8000-8100" # Expose ports 8000-8100 for examples that use an HTTP server
wadm:
depends_on:
- "nats"
image: ghcr.io/wasmcloud/wadm:latest
environment:
- WADM_NATS_SERVER=nats