/
compose.yml.j2
130 lines (114 loc) · 4.09 KB
/
compose.yml.j2
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
129
130
---
services:
netdata:
image: netdata/netdata:v1.44.2@sha256:78c8cb876be0f4a1f1544126b9a71b92b8c47300083f408bd033192d9c1cf666 # editorconfig-checker-disable-line
hostname: "netdata-{{ inventory_hostname }}"
environment:
TZ: "{{ timezone }}"
DOCKER_HOST: docker-socket-proxy:2375
volumes:
- "{{ volumes_directory }}/netdata:/etc/netdata"
- /etc/group:/host/etc/group:ro
- /etc/passwd:/host/etc/passwd:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
ports:
- "19999:19999"
security_opt:
- apparmor:unconfined
cap_add:
- SYS_PTRACE
restart: always
docker-socket-proxy:
image: ghcr.io/tecnativa/docker-socket-proxy:0.1.1@sha256:6c22b9545adc95258af9deffdde6c0ce0a0a70716771e5a4e02d24d1b6e0dda1 # editorconfig-checker-disable-line
environment:
TZ: "{{ timezone }}"
CONTAINERS: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "2375:2375"
restart: always
prometheus:
image: prom/prometheus:v2.49.1@sha256:beb5e30ffba08d9ae8a7961b9a2145fc8af6296ff2a4f463df7cd722fcbfc789 # editorconfig-checker-disable-line
user: "{{ ansible_admin_user_uid }}:{{ ansible_admin_user_gid }}"
environment:
TZ: "{{ timezone }}"
volumes:
- "{{ volumes_directory }}/prometheus/etc-prometheus:/etc/prometheus"
- "{{ volumes_directory }}/prometheus/prometheus:/prometheus"
ports:
- "9090:9090"
restart: always
unpoller:
image: ghcr.io/unpoller/unpoller:v2.9.5@sha256:486a63339969fd5207697502e29e4875f4bf7d7ef5c558188b192f2f88fdd3d6 # editorconfig-checker-disable-line
environment:
TZ: "{{ timezone }}"
volumes:
- "{{ volumes_directory }}/unpoller/config:/config"
ports:
- "9130:9130"
restart: always
grafana:
image: grafana/grafana-oss:10.3.1@sha256:7567a7c70a3c1d75aeeedc968d1304174a16651e55a60d1fb132a05e1e63a054 # editorconfig-checker-disable-line
user: "{{ ansible_admin_user_uid }}:{{ ansible_admin_user_gid }}"
environment:
TZ: "{{ timezone }}"
GF_INSTALL_PLUGINS: >
grafana-clock-panel,grafana-piechart-panel,natel-discrete-panel
volumes:
- "{{ volumes_directory }}/grafana/etc-grafana:/etc/grafana"
- "{{ volumes_directory }}/grafana/var-lib-grafana:/var/lib/grafana"
ports:
- "3000:3000"
restart: always
graylog:
image: graylog/graylog:4.3.15@sha256:2f6a1ba45cbd4af6382fe325d443f430beaf2cafc76b70d2ab3e90cba563f574 # editorconfig-checker-disable-line
environment:
TZ: "{{ timezone }}"
volumes:
- "{{ volumes_directory }}/graylog:/usr/share/graylog/data"
ports:
# Web interface and REST API
- "9900:9900"
# Syslog
- "514:514"
- "514:514/udp"
# GELF
- "12201:12201"
- "12201:12201/udp"
entrypoint: >
/usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
restart: always
mongodb:
image: mongo:4.4.28@sha256:bb1558140296752e76f2a1b4fb02d9f2b265675822a2d913fded41b2d854c80b # editorconfig-checker-disable-line
user: "{{ ansible_admin_user_uid }}:{{ ansible_admin_user_gid }}"
environment:
TZ: "{{ timezone }}"
volumes:
- "{{ volumes_directory }}/mongodb/db:/data/db"
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2@sha256:2c257b68f361872e13bdd476cba152e232a314ec61b0eedfc1f71b628ba39432 # editorconfig-checker-disable-line
environment:
TZ: "{{ timezone }}"
http.host: 0.0.0.0
network.host: 0.0.0.0
transport.host: localhost
volumes:
- "{{ volumes_directory }}/elasticsearch:/usr/share/elasticsearch/data"
restart: always
autoheal:
image: willfarrell/autoheal:1.2.0@sha256:31f580ef0279eaced5b38d631b08c474d70d8403c1c2fdd6ddcf2e879d5f3f7c # editorconfig-checker-disable-line
environment:
TZ: "{{ timezone }}"
AUTOHEAL_CONTAINER_LABEL: all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always