-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
128 lines (119 loc) · 2.88 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.7"
networks:
net1:
volumes:
vmdata:
services:
victoriametrics_tsdb:
container_name: frigga_victoriametrics
image: victoriametrics/victoria-metrics:v1.53.1
ports:
- 8428:8428
- 8089:8089
- 8089:8089/udp
- 2003:2003
- 2003:2003/udp
- 4242:4242
volumes:
- vmdata:/storage
command:
- "--storageDataPath=/storage"
- "--graphiteListenAddr=:2003"
- "--opentsdbListenAddr=:4242"
- "--httpListenAddr=:8428"
- "--influxListenAddr=:8089"
networks:
- net1
restart: always
depends_on:
- prometheus
webserver:
container_name: frigga_webserver
image: "${DOCKER_TAG}"
volumes:
- ./prometheus.yml:/frigga/prometheus.yml
command:
- "webserver-start"
- "--port"
- "8083"
- "--use-http"
- "--debug"
ports:
- 8083:8083
depends_on:
- prometheus
networks:
- net1
webserver_socket:
container_name: frigga_webserver_socket
image: "${DOCKER_TAG}"
volumes:
- ./prometheus.yml:/frigga/prometheus.yml
command:
- "webserver-start"
- "--port"
- "8085"
- "--debug"
ports:
- 8085:8085
depends_on:
- prometheus
networks:
- net1
prometheus:
container_name: frigga_prometheus
image: prom/prometheus:v2.24.1
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
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"
- "--web.enable-admin-api"
- "--web.enable-lifecycle"
ports:
- 9090:9090
depends_on:
- container-exporter
- node-exporter
networks:
- net1
node-exporter:
container_name: frigga_node-exporter
image: prom/node-exporter:v1.1.0
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
ports:
- 9100:9100
networks:
- net1
container-exporter:
container_name: frigga_container-exporter
image: prom/container-exporter:latest
volumes:
- /sys/fs/cgroup:/cgroup
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9104:9104
networks:
- net1
grafana:
container_name: frigga_grafana
image: grafana/grafana:7.3.7
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
ports:
- 3000:3000
depends_on:
- prometheus
- victoriametrics_tsdb
networks:
- net1