mirror of
https://github.com/hanzoai/chat.git
synced 2026-09-30 20:51:17 +00:00
- 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
28 lines
791 B
Bash
Executable File
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" |