-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
41 lines (37 loc) · 1.03 KB
/
docker-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
38
39
40
41
version: '3.7'
services:
prometheus:
image: prom/prometheus:v2.50.1
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command: >
--config.file=/etc/prometheus/prometheus.yml
--storage.tsdb.path=/prometheus
grafana:
user: root
container_name: 'grafana-amazonprometheus-datasource'
platform: linux/amd64
depends_on:
prometheus:
condition: service_started
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.0.0}
ports:
- 3000:3000/tcp
- 2345:2345/tcp # delve
extra_hosts:
- "host.docker.internal:host-gateway"
security_opt:
- 'apparmor:unconfined'
- 'seccomp:unconfined'
cap_add:
- SYS_PTRACE
volumes:
- ./dist:/var/lib/grafana/plugins/grafana-amazonprometheus-datasource
- ./provisioning:/etc/grafana/provisioning
- .:/root/grafana-amazonprometheus-datasource