-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
37 lines (37 loc) · 1.51 KB
/
compose.yaml
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
# This configuration is intended for dev purpose
name: dev-quickstart-amqp-consuming-hello
services:
rabbitmq:
container_name: dev-quickstart-amqp-consuming-hello-rabbitmq
image: rabbitmq:management-alpine
restart: unless-stopped
environment:
- RABBITMQ_DEFAULT_USER=svc_testing
- RABBITMQ_DEFAULT_PASS=svc_testing
ports:
# AMQP protocol port
- "5672:5672"
# HTTP management UI
- "15672:15672"
prometheus:
container_name: dev-quickstart-amqp-consuming-hello-prometheus
image: prom/prometheus:v3.1.0
volumes:
- ./src/main/docker/prometheus/:/etc/prometheus/
command:
- "--config.file=/etc/prometheus/prometheus.yml"
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode: "host" # to test locally running service
grafana:
container_name: dev-quickstart-amqp-consuming-hello-grafana
image: grafana/grafana:11.4.0
volumes:
- ./src/main/docker/grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SECURITY_ADMIN_PASSWORD=changeme
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-piechart-panel
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode: "host" # to test locally running service