Files
Registry/setup.sh
2025-11-04 10:13:30 -08:00

33 lines
798 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"