-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (56 loc) · 1.6 KB
/
Copy pathcompose.yml
File metadata and controls
62 lines (56 loc) · 1.6 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.8' # Use the desired Docker Compose version
networks:
custom_network:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/16
services:
redis:
restart: always
container_name: netprobe-redis
image: "redis:latest"
volumes:
- ./config/redis/redis.conf:/etc/redis/redis.conf
networks:
- custom_network # Attach to the custom network
netprobe:
restart: always
container_name: netprobe-probe
build: .
volumes:
- .:/netprobe_lite
environment:
MODULE: "NETPROBE"
networks:
- custom_network # Attach to the custom network
presentation:
restart: always
container_name: netprobe-presentation
build: .
volumes:
- .:/netprobe_lite
environment:
MODULE: "PRESENTATION"
networks:
- custom_network # Attach to the custom network
prometheus:
restart: always
container_name: netprobe-prometheus
image: "prom/prometheus"
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- custom_network # Attach to the custom network
grafana:
restart: always
image: grafana/grafana-enterprise
container_name: netprobe-grafana
volumes:
- ./config/grafana/datasources/automatic.yml:/etc/grafana/provisioning/datasources/automatic.yml
- ./config/grafana/dashboards/main.yml:/etc/grafana/provisioning/dashboards/main.yml
- ./config/grafana/dashboards/netprobe.json:/var/lib/grafana/dashboards/netprobe.json
ports:
- '3001:3000'
networks:
- custom_network # Attach to the custom network