Files
Registry/setup.sh

33 lines
801 B
Bash
Raw Normal View History

2025-11-04 10:13:30 -08:00
#!/bin/bash
# Setup script for Lightweight Docker Registry
echo "🐳 Setting up Lightweight Docker Registry..."
# Create necessary directories
mkdir -p data auth certs
# Copy environment file if it doesn't exist
if [ ! -f .env ]; then
cp .env.example .env
echo "✅ Created .env file from template"
else
echo " .env file already exists"
fi
# Set proper permissions
chmod 755 data auth certs
echo "🚀 Starting registry..."
docker-compose up -d
echo ""
echo "✅ Registry is running!"
2025-11-04 10:17:37 -08:00
echo "📊 Web UI: http://your-domain"
echo "🔌 Registry API: http://your-domain:5000"
2025-11-04 10:13:30 -08:00
echo ""
echo "💡 To push an image:"
2025-11-04 10:17:37 -08:00
echo " docker tag myimage your-domain:5000/myimage"
echo " docker push your-domain:5000/myimage"
2025-11-04 10:13:30 -08:00
echo ""
echo "📝 Edit .env file to customize configuration"