daskboard deploy from iuptime kuma
This commit is contained in:
@@ -57,7 +57,7 @@ all:
|
|||||||
ansible_host: 192.168.0.57
|
ansible_host: 192.168.0.57
|
||||||
navidrome:
|
navidrome:
|
||||||
ansible_host: 192.168.0.59
|
ansible_host: 192.168.0.59
|
||||||
uptimekuma:
|
dashboard:
|
||||||
ansible_host: 192.168.0.60
|
ansible_host: 192.168.0.60
|
||||||
gitea:
|
gitea:
|
||||||
ansible_host: 192.168.0.63
|
ansible_host: 192.168.0.63
|
||||||
|
|||||||
8
playbooks/dashboard/.env
Normal file
8
playbooks/dashboard/.env
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
GF_SECURITY_ADMIN_PASSWORD=!vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
62346139326139633866636132306465626561386461623836373231376133663636636131613961
|
||||||
|
3330646633653732333032626234616462346665323163630a353566656534323261333662373433
|
||||||
|
37303833373863313562393639323261386330653865613461303332313465313562353837633637
|
||||||
|
3032343239386534330a616364336366376134313238343131303639646365346662653761336635
|
||||||
|
3938
|
||||||
81
playbooks/dashboard/docker-compose.yml
Normal file
81
playbooks/dashboard/docker-compose.yml
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
||||||
|
services:
|
||||||
|
prometheus:
|
||||||
|
image: prom/prometheus:latest
|
||||||
|
container_name: prometheus
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||||
|
- prometheus-data:/prometheus
|
||||||
|
command:
|
||||||
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||||
|
- "--storage.tsdb.path=/prometheus"
|
||||||
|
- "--storage.tsdb.retention.time=90d"
|
||||||
|
ports:
|
||||||
|
- "9090:9090"
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:latest
|
||||||
|
container_name: grafana
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- prometheus
|
||||||
|
environment:
|
||||||
|
# Change this before going live, or set via .env file
|
||||||
|
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:?err}
|
||||||
|
- GF_USERS_ALLOW_SIGN_UP=false
|
||||||
|
volumes:
|
||||||
|
- grafana-data:/var/lib/grafana
|
||||||
|
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
uptime-kuma:
|
||||||
|
image: louislam/uptime-kuma:1
|
||||||
|
container_name: uptime-kuma
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- kuma-data:/app/data
|
||||||
|
ports:
|
||||||
|
- "3001:3001"
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
restic-exporter:
|
||||||
|
image: ngosang/restic-exporter:latest
|
||||||
|
container_name: restic-exporter
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ./restic-exporter.env
|
||||||
|
ports:
|
||||||
|
- "8001:8001"
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
autokuma:
|
||||||
|
image: ghcr.io/bigboot/autokuma:master
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- uptimekuma
|
||||||
|
environment:
|
||||||
|
AUTOKUMA__KUMA__URL: http://192.168.0.60:3001
|
||||||
|
AUTOKUMA__KUMA__USERNAME: jester
|
||||||
|
AUTOKUMA__KUMA__PASSWORD: /run/secrets/uptime_pass
|
||||||
|
AUTOKUMA__KUMA__TLS__VERIFY: 0
|
||||||
|
AUTOKUMA__TAG_NAME: AutoKuma
|
||||||
|
AUTOKUMA__DOCKER__HOSTS: unix:///var/run/docker.sock
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- autokuma-data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
autokuma-data:
|
||||||
|
prometheus-data:
|
||||||
|
grafana-data:
|
||||||
|
kuma-data:
|
||||||
|
secrets:
|
||||||
|
uptime_pass:
|
||||||
|
file: ./secrets/uptimekuma.pass
|
||||||
|
networks:
|
||||||
|
monitoring:
|
||||||
|
driver: bridge
|
||||||
@@ -1 +0,0 @@
|
|||||||
# Unused
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
|
||||||
services:
|
|
||||||
uptimekuma:
|
|
||||||
image: louislam/uptime-kuma:2
|
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
kuma.uptimekuma.http.name: "Uptime Kuma"
|
|
||||||
kuma.uptimekuma.http.url: "http://192.168.0.60:3001" # fixed typo
|
|
||||||
volumes:
|
|
||||||
- ./data:/app/data
|
|
||||||
ports:
|
|
||||||
- "3001:3001"
|
|
||||||
|
|
||||||
autokuma:
|
|
||||||
image: ghcr.io/bigboot/autokuma:master
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
|
||||||
- uptimekuma
|
|
||||||
environment:
|
|
||||||
AUTOKUMA__KUMA__URL: http://192.168.0.60:3001
|
|
||||||
AUTOKUMA__KUMA__USERNAME: jester
|
|
||||||
AUTOKUMA__KUMA__PASSWORD: /run/secrets/uptime_pass
|
|
||||||
AUTOKUMA__KUMA__TLS__VERIFY: 0
|
|
||||||
AUTOKUMA__TAG_NAME: AutoKuma
|
|
||||||
AUTOKUMA__DOCKER__HOSTS: unix:///var/run/docker.sock
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- autokuma-data:/data
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
autokuma-data:
|
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
|
||||||
uptime_pass:
|
|
||||||
file: ./secrets/uptimekuma.pass
|
|
||||||
Reference in New Issue
Block a user