feat: Restructure to subdirectories with compose.yml
Each stack now has its own directory with standard compose.yml: - stacks/gotify/compose.yml - stacks/prometheus/compose.yml - stacks/grafana/compose.yml - stacks/vaultwarden/compose.yml - stacks/node-exporter/compose.yml Benefits: - Cleaner structure - Easier to maintain - Works with Komodo manual stack creation - README.md for each stack with deployment info Usage in Komodo: 1. Stacks → Add Stack 2. Source: Git Repo (nocci/komodo-stacks) 3. Path: stacks/<stack-name>/ (the folder!) 4. Deploy to server
This commit is contained in:
parent
f0bcf8c70c
commit
b37541bb7a
16 changed files with 155 additions and 233 deletions
24
stacks/grafana/README.md
Normal file
24
stacks/grafana/README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Grafana
|
||||
|
||||
📊 Dashboards & Visualisierung
|
||||
|
||||
## Deploy in Komodo
|
||||
|
||||
**Pfad:** `stacks/grafana/`
|
||||
|
||||
## Secrets
|
||||
|
||||
- `GF_SECURITY_ADMIN_USER` - Admin Username
|
||||
- `GF_SECURITY_ADMIN_PASSWORD` - Admin Password
|
||||
|
||||
## Ports
|
||||
|
||||
- `3000` - Web UI
|
||||
|
||||
## Caddy
|
||||
|
||||
```caddyfile
|
||||
grafana.example.com {
|
||||
reverse_proxy localhost:3000
|
||||
}
|
||||
```
|
||||
30
stacks/grafana/compose.yml
Normal file
30
stacks/grafana/compose.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
services:
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- grafana_config:/etc/grafana
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=${SECRET:grafana-admin-user}
|
||||
- GF_SECURITY_ADMIN_PASSWORD=${SECRET:grafana-admin-pass}
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
networks:
|
||||
- monitoring
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --spider -q http://localhost:3000/api/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
volumes:
|
||||
grafana_data:
|
||||
grafana_config:
|
||||
|
||||
networks:
|
||||
monitoring:
|
||||
driver: bridge
|
||||
Loading…
Add table
Add a link
Reference in a new issue