-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
50 lines (46 loc) · 1.08 KB
/
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
44
45
46
47
48
49
50
services:
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data_itn04:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
networks:
- monitor-network
exporter:
build:
context: .
dockerfile: Dockerfile.exporter
ports:
- "3002:3002"
environment:
- NODE_ENV=production
restart: unless-stopped
networks:
- monitor-network
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PROMETHEUS_URL=http://prometheus:9090
depends_on:
- prometheus
- exporter
restart: unless-stopped
networks:
- monitor-network
networks:
monitor-network:
driver: bridge
volumes:
prometheus_data_itn04: