Files
Registry/setup.sh

33 lines
798 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!"
echo "📊 Web UI: http://localhost:8080"
echo "🔌 Registry API: http://localhost:5000"
echo ""
echo "💡 To push an image:"
echo " docker tag myimage localhost:5000/myimage"
echo " docker push localhost:5000/myimage"
echo ""
echo "📝 Edit .env file to customize configuration"