-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
37 lines (37 loc) · 1.52 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 : quickstart-amqp-producing-hello
services :
rabbitmq :
container_name : dev-quickstart-amqp-producing-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-producing-hello-prometheus
image : prom/prometheus:v2.54.1
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-producing-hello-grafana
image : grafana/grafana:11.2.2
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