zabbix
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "zabbix-appliance/zabbix-docker"]
|
||||
path = zabbix-appliance/zabbix-docker
|
||||
url = https://github.com/zabbix/zabbix-docker.git
|
||||
2
zabbix-appliance/.env.example
Normal file
2
zabbix-appliance/.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
TAILSCALE_OAUTH_KEY=
|
||||
TAILSCALE_TAGS=
|
||||
28
zabbix-appliance/docker-compose.yml
Normal file
28
zabbix-appliance/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
include:
|
||||
- ./zabbix-docker/docker-compose_v3_alpine_pgsql_latest.yaml
|
||||
services:
|
||||
ts-zabbix-server:
|
||||
image: tailscale/tailscale:latest
|
||||
container_name: ts-zabbix-server
|
||||
hostname: zabbix
|
||||
environment:
|
||||
- TS_AUTHKEY=${TAILSCALE_OAUTH_KEY}
|
||||
- TS_EXTRA_ARGS=--advertise-tags=${TAILSCALE_TAGS}
|
||||
- TS_SERVE_CONFIG=/config/zabbix-server.json
|
||||
- TS_STATE_DIR=/var/lib/tailscale
|
||||
volumes:
|
||||
- ts-zabbix-server-state:/var/lib/tailscale
|
||||
- ${PWD}/ts-zabbix-server/config:/config
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
cap_add:
|
||||
- net_admin
|
||||
- sys_module
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
ts-kuma-state:
|
||||
driver: local
|
||||
ts-zabbix-server-state:
|
||||
driver: local
|
||||
|
||||
20
zabbix-appliance/ts-zabbix-server/config/zabbix-server.json
Normal file
20
zabbix-appliance/ts-zabbix-server/config/zabbix-server.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"TCP": {
|
||||
"443": {
|
||||
"HTTPS": true
|
||||
}
|
||||
},
|
||||
"Web": {
|
||||
"${TS_CERT_DOMAIN}:443": {
|
||||
"Handlers": {
|
||||
"/": {
|
||||
"Proxy": "http://127.0.0.1:80"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowFunnel": {
|
||||
"${TS_CERT_DOMAIN}:443": false
|
||||
}
|
||||
}
|
||||
|
||||
1
zabbix-appliance/zabbix-docker
Submodule
1
zabbix-appliance/zabbix-docker
Submodule
Submodule zabbix-appliance/zabbix-docker added at c2d3bb5916
Reference in New Issue
Block a user