Archived
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b45a4abee |
Vendored
BIN
Binary file not shown.
Binary file not shown.
@@ -1,49 +1,11 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
loki:
|
|
||||||
image: grafana/loki:3.0.0
|
|
||||||
container_name: loki
|
|
||||||
ports:
|
|
||||||
- "3100:3100"
|
|
||||||
command: -config.file=/etc/loki/local-config.yaml
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
grafana:
|
|
||||||
image: grafana/grafana:10.4.0
|
|
||||||
container_name: grafana
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
environment:
|
|
||||||
- GF_SECURITY_ADMIN_USER=admin
|
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=ocfsecure
|
|
||||||
depends_on:
|
|
||||||
- loki
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
alloy:
|
|
||||||
image: grafana/alloy:latest
|
|
||||||
container_name: alloy
|
|
||||||
volumes:
|
|
||||||
- ./alloy-config.yml:/etc/alloy/config.alloy
|
|
||||||
- ./logs:/var/log/scanner
|
|
||||||
ports:
|
|
||||||
- "12345:12345" # optional web UI/debug
|
|
||||||
command: run /etc/alloy/config.alloy
|
|
||||||
environment:
|
|
||||||
- ALLOY_ENABLE_WEB=true
|
|
||||||
depends_on:
|
|
||||||
- loki
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
apache:
|
apache:
|
||||||
build:
|
build:
|
||||||
context: ./apache
|
context: ./apache
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
networks:
|
|
||||||
- shared_net
|
|
||||||
- default
|
|
||||||
volumes:
|
volumes:
|
||||||
- userdata:/home
|
- userdata:/home
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -90,7 +52,3 @@ volumes:
|
|||||||
userdata:
|
userdata:
|
||||||
db_data:
|
db_data:
|
||||||
wp_data:
|
wp_data:
|
||||||
|
|
||||||
networks:
|
|
||||||
shared_net:
|
|
||||||
external: true
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
Username: admin
|
|
||||||
Password: wp_graf_pass
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
shared_net:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
services:
|
|
||||||
loki:
|
|
||||||
image: grafana/loki:3.0.0
|
|
||||||
container_name: loki
|
|
||||||
ports:
|
|
||||||
- "3100:3100"
|
|
||||||
command: -config.file=/etc/loki/local-config.yaml
|
|
||||||
networks:
|
|
||||||
- shared_net
|
|
||||||
|
|
||||||
grafana:
|
|
||||||
image: grafana/grafana:10.4.0
|
|
||||||
container_name: grafana
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
environment:
|
|
||||||
- GF_SECURITY_ADMIN_USER=admin
|
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=admin
|
|
||||||
depends_on:
|
|
||||||
- loki
|
|
||||||
networks:
|
|
||||||
- shared_net
|
|
||||||
|
|
||||||
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Usage:
|
||||||
|
# ./export-wp-plugins.sh [base_directory] [output_file]
|
||||||
|
|
||||||
|
BASE_DIR="${1:-/var/www}"
|
||||||
|
OUTPUT_FILE="${2:-plugins.csv}"
|
||||||
|
|
||||||
|
# Check for WP-CLI
|
||||||
|
if ! command -v wp &>/dev/null; then
|
||||||
|
echo "WP-CLI not found. Install WP-CLI first: https://wp-cli.org/"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Loop through subdirectories
|
||||||
|
for dir in "$BASE_DIR"/*/; do
|
||||||
|
if [ -f "$dir/wp-config.php" ]; then
|
||||||
|
site=$(basename "$dir")
|
||||||
|
echo "=== $site ===" | tee -a "$OUTPUT_FILE"
|
||||||
|
wp --allow-root --path="$dir" plugin list --format=csv>> "$OUTPUT_FILE"
|
||||||
|
echo "" >> "$OUTPUT_FILE"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Plugins saved to $OUTPUT_FILE"
|
||||||
Reference in New Issue
Block a user