-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1013 Bytes
/
docker-compose.yml
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
42
43
services:
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
# if you are running as root then set it to 0
# else find the right id with the id -u command
user: '0'
ports:
- '3000:3000'
# adding the mount volume point which we create earlier
volumes:
- '$PWD/grafana-data:/var/lib/grafana'
networks:
- my-network
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus-data:/prometheus
ports:
- 9090:9090
networks:
- my-network
node-exporter:
build:
context: .
dockerfile: Dockerfile # Your Dockerfile to run the Node.js app
container_name: node-exporter
volumes:
- ./:/usr/src/app
ports:
- "8080:8080" # Expose the Node.js app metrics endpoint
environment:
- NODE_ENV=production
- PORT=8080
networks:
- my-network
networks:
my-network: