snapshot of https://github.com/ThreeDotsLabs/watermill.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
master / ci (push) Failing after 0s
Some checks failed
master / ci (push) Failing after 0s
This commit is contained in:
26
_examples/basic/4-metrics/docker-compose.yml
Normal file
26
_examples/basic/4-metrics/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
golang:
|
||||
image: golang:1.26
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 8081:8081
|
||||
depends_on:
|
||||
- prometheus
|
||||
volumes:
|
||||
- ../../../:/watermill
|
||||
- $GOPATH/pkg/mod:/go/pkg/mod
|
||||
working_dir: /watermill/_examples/basic/4-metrics
|
||||
command: go run main.go -metrics :8081 -delay 0.1
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:5.2.4
|
||||
network_mode: host
|
||||
|
||||
Reference in New Issue
Block a user