Files
chat/scripts/init-demo-user.sh
zeekay dc481954f4 feat: Add GitHub Actions workflow for Docker builds
- Add docker-publish.yml workflow for ghcr.io
- Add production-ready Dockerfile (if missing)
- Enable automated builds on push to main
- Support for semantic versioning tags
2025-07-23 23:06:15 -05:00

28 lines
791 B
Bash
Executable File

#!/bin/bash
# Initialize demo user for Hanzo Chat
# Run this after docker compose up
echo "🚀 Initializing Hanzo Chat demo user..."
echo "📧 Email: [email protected]"
echo "🔑 Password: demo1234"
echo ""
# Wait for services to be ready
echo "⏳ Waiting for services to be ready..."
sleep 5
# Run the seed script inside a temporary container
docker run --rm \
--network chat_hanzo-network \
-e MONGO_URI="mongodb://hanzo:hanzo123@hanzo-mongodb:27017/HanzoChat?authSource=admin" \
-v "$PWD/scripts:/scripts" \
-w /scripts \
node:18-alpine sh -c "
npm install mongoose bcryptjs
node seed_demo_user.js
"
echo ""
echo "✅ Demo user initialization complete!"
echo "🌐 Access Hanzo Chat at: http://localhost:3081"
echo "📧 Login with: [email protected] / demo1234"