33 lines
801 B
Bash
Executable File
33 lines
801 B
Bash
Executable File
#!/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://your-domain"
|
||
echo "🔌 Registry API: http://your-domain:5000"
|
||
echo ""
|
||
echo "💡 To push an image:"
|
||
echo " docker tag myimage your-domain:5000/myimage"
|
||
echo " docker push your-domain:5000/myimage"
|
||
echo ""
|
||
echo "📝 Edit .env file to customize configuration" |