#!/bin/bash echo "Setting up Docker Registry with authentication..." # Build and start the registry docker-compose up -d --build echo "Waiting for registry to start..." sleep 5 # Set initial password for recruas user echo "Setting password for 'recruas' user..." docker exec -it registry htpasswd -B /etc/docker/registry/auth/htpasswd recruas echo "Setup complete!" echo "Registry is running with authentication enabled." echo "Default user: recruas" echo "UI will be available on port 80 (exposed)" echo "Registry API available on port 5000 (exposed)" echo "" echo "To change password later:" echo "docker exec -it registry htpasswd -B /etc/docker/registry/auth/htpasswd recruas"