Added Trilium Notes and HedgeDoc to the stack, updated diagnose-dev.sh

This commit is contained in:
2025-05-26 18:46:26 -05:00
parent 2bb40c4e50
commit d2ed0f7280
2 changed files with 49 additions and 7 deletions
+26
View File
@@ -67,6 +67,32 @@ services:
networks:
- fold-network
trilium:
image: zadam/trilium:latest
container_name: trilium_dev
ports:
- "8080:8080"
volumes:
- ./volumes/trilium:/home/node/trilium-data
restart: unless-stopped
networks:
- fold-network
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.9.9
container_name: hedgedoc_dev
ports:
- "3030:3000"
volumes:
- ./volumes/hedgedoc/uploads:/hedgedoc/public/uploads
environment:
- CMD_DOMAIN=localhost:3030
- CMD_PROTOCOL_USESSL=false
- CMD_DB_URL=sqlite:/hedgedoc/public/uploads/hedgedoc.db
restart: unless-stopped
networks:
- fold-network
networks:
fold-network:
driver: bridge
+23 -7
View File
@@ -30,14 +30,24 @@ echo "🪵 Ghost Logs (last 20 lines):"
docker logs ghost_dev --tail=20 || echo "⚠️ Ghost container not found."
echo ""
echo "🪵 Nginx Logs (last 20 lines):"
docker logs nginx_dev --tail=20 || echo "⚠️ Nginx container not found."
echo "🪵 Trilium Logs (last 20 lines):"
docker logs trilium_dev --tail=20 || echo "⚠️ Trilium container not found."
echo ""
echo "🪵 HedgeDoc Logs (last 20 lines):"
docker logs hedgedoc_dev --tail=20 || echo "⚠️ HedgeDoc container not found."
echo ""
echo "🪵 MailHog Logs (last 20 lines):"
docker logs mailhog_dev --tail=20 || echo "⚠️ MailHog container not found."
echo ""
echo "🌐 Port Bindings:"
docker compose -f docker-compose.dev.yml port ghost 2368 || echo "❌ Ghost not exposing port 2368"
docker compose -f docker-compose.dev.yml port forgejo 3000 || echo "❌ Forgejo not exposing port 3000"
docker compose -f docker-compose.dev.yml port nginx 80 || echo "❌ Nginx not exposing port 80"
docker compose -f docker-compose.dev.yml port trilium 8080 || echo "❌ Trilium not exposing port 8080"
docker compose -f docker-compose.dev.yml port hedgedoc 3000 || echo "❌ HedgeDoc not exposing port 3000"
docker compose -f docker-compose.dev.yml port mailhog 8025 || echo "❌ MailHog not exposing port 8025"
echo ""
echo "🔒 Forgejo Volume Permissions:"
@@ -45,12 +55,18 @@ ls -ld ./volumes/forgejo || echo "❌ Missing volumes/forgejo"
ls -la ./volumes/forgejo || echo "⚠️ Contents not accessible"
echo ""
echo "🧠 Entrypoint Script Check (forgejo-entrypoint.sh):"
head -n 10 scripts/forgejo-entrypoint.sh || echo "⚠️ Missing entrypoint script"
echo "🔒 Trilium Volume Permissions:"
ls -ld ./volumes/trilium || echo " Missing volumes/trilium"
ls -la ./volumes/trilium || echo "⚠️ Contents not accessible"
echo ""
echo "📜 Nginx Default Configuration (first 20 lines):"
head -n 20 nginx/dev/default.conf || echo "⚠️ Missing default.conf"
echo "🔒 HedgeDoc Volume Permissions:"
ls -ld ./volumes/hedgedoc/uploads || echo " Missing volumes/hedgedoc/uploads"
ls -la ./volumes/hedgedoc/uploads || echo "⚠️ Contents not accessible"
echo ""
echo "🧠 Entrypoint Script Check (forgejo-entrypoint.sh):"
head -n 10 scripts/forgejo-entrypoint.sh || echo "⚠️ Missing entrypoint script"
echo ""
echo "📜 Environment Variables (.env.dev):"