-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose-mktxp-stack-fs.yml
executable file
·116 lines (108 loc) · 2.79 KB
/
docker-compose-mktxp-stack-fs.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
networks:
mktxp: {}
volumes:
mktxp-logs:
driver_opts:
o: bind
type: none
device: $PWD/syslog-ng/logs
prometheus_storage: {}
grafana_storage: {}
services:
mktxp:
container_name: mktxp
image: ghcr.io/akpw/mktxp:latest
user: root
volumes:
- './mktxp/:/root/mktxp/'
networks:
mktxp: null
restart: unless-stopped
grafana:
container_name: grafana
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_AUTH_BASIC_ENABLED: "false"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
GF_USERS_DEFAULT_THEME: "light"
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /etc/grafana/provisioning/dashboards/mikrotik/mikrotik_mktxp_exporter.json
image: grafana/grafana:latest
networks:
mktxp: null
ports:
- protocol: tcp
published: 3000
target: 3000
restart: unless-stopped
volumes:
- grafana_storage:/var/lib/grafana
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
loki:
command: -config.file=/etc/loki/loki-config.yml
container_name: loki
image: grafana/loki:latest
networks:
mktxp: null
ports:
- protocol: tcp
published: 3100
target: 3100
restart: unless-stopped
volumes:
- ./loki/loki-config.yml:/etc/loki/loki-config.yml
prometheus:
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=1y
- --web.enable-admin-api
- --web.enable-lifecycle
container_name: prometheus
image: prom/prometheus:latest
networks:
mktxp: null
ports:
- published: 9090
target: 9090
restart: unless-stopped
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_storage:/prometheus
promtail:
command: -config.file=/etc/promtail/promtail-config.yml
container_name: promtail
image: grafana/promtail:latest
networks:
mktxp: null
ports:
- protocol: tcp
published: 1514
target: 1514
- protocol: tcp
published: 9080
target: 9080
restart: unless-stopped
volumes:
- ./promtail/promtail-config-fs.yml:/etc/promtail/promtail-config.yml:ro
- mktxp-logs:/var/log:ro
syslog-ng:
command: -edv
container_name: syslog-ng
depends_on:
- promtail
image: balabit/syslog-ng:latest
networks:
mktxp: null
ports:
- protocol: udp
published: 514
target: 514
- protocol: tcp
published: 601
target: 601
restart: unless-stopped
volumes:
- ./syslog-ng/syslog-ng-fs.conf:/etc/syslog-ng/syslog-ng.conf:ro
- mktxp-logs:/var/log/syslog-ng