add flame dashboard
This commit is contained in:
parent
917ce3bf0a
commit
b11315c19d
3 changed files with 52 additions and 0 deletions
13
scripts/flame/docker-compose.yml
Normal file
13
scripts/flame/docker-compose.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
flame:
|
||||||
|
image: pawelmalak/flame
|
||||||
|
container_name: flame
|
||||||
|
volumes:
|
||||||
|
- /data/flame:/app/data
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:8086:5005
|
||||||
|
environment:
|
||||||
|
- PASSWORD=$gen_pw
|
||||||
|
restart: unless-stopped
|
10
scripts/flame/landing.Caddyfile
Normal file
10
scripts/flame/landing.Caddyfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
https://{$DOMAIN} {
|
||||||
|
import blocked_matcher
|
||||||
|
handle @blocked {
|
||||||
|
file_server {
|
||||||
|
root /var/www
|
||||||
|
status 403
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reverse_proxy http://localhost:8086
|
||||||
|
}
|
29
scripts/flame/script.sh
Normal file
29
scripts/flame/script.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Template script not meant to be run
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source "$HL_LIB"
|
||||||
|
|
||||||
|
_assert_vars HL_DOMAIN;
|
||||||
|
|
||||||
|
_ch_001-make_dirs() {
|
||||||
|
mkdir -p ~/flame /data/flame;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ch_002-copy_compose() {
|
||||||
|
export HL_GEN_PW="$(openssl rand -hex 12)";
|
||||||
|
cp $(_fill docker-compose.yml.templ) ~/flame/docker-compose.yml;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ch_003-update_caddy() {
|
||||||
|
# overwrite the default landing page
|
||||||
|
cp landing.Caddyfile /etc/caddy/conf.d;
|
||||||
|
sudo systemctl reload caddy.service;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ch_004-run-service() {
|
||||||
|
cd ~/flame;
|
||||||
|
docker-compose up -d;
|
||||||
|
}
|
||||||
|
|
||||||
|
_run_checkpoints;
|
Loading…
Reference in a new issue