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
32 lines
835 B
YAML
32 lines
835 B
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:9090:9090"
|
|
volumes:
|
|
- prometheus_data:/prometheus
|
|
- prometheus_config:/etc/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--storage.tsdb.retention.time=15d'
|
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
|
- '--web.console.templates=/etc/prometheus/consoles'
|
|
networks:
|
|
- monitoring
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9090/-/healthy"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
prometheus_data:
|
|
prometheus_config:
|
|
|
|
networks:
|
|
monitoring:
|
|
driver: bridge
|