-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
24 lines (24 loc) · 1.07 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
version: "3"
services:
prometheus:
container_name: quickstart-dev-hello-world-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: quickstart-dev-hello-world-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