Update for documentation and config of repo location

This commit is contained in:
NinjaPug
2025-07-07 12:44:39 -04:00
parent 430cd263ac
commit 41f3df8289
18 changed files with 342 additions and 119 deletions

20
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
# Generate environment configuration for Docker Registry Browser
# This script is run at container startup to inject environment variables
# Create env.js with environment variables
cat <<EOF > /usr/share/nginx/html/assets/env.js
window.env = {
REGISTRY_HOST: '${REGISTRY_HOST:-localhost:5000}',
REGISTRY_PROTOCOL: '${REGISTRY_PROTOCOL:-http}',
REGISTRY_USERNAME: '${REGISTRY_USERNAME:-}',
REGISTRY_PASSWORD: '${REGISTRY_PASSWORD:-}'
};
EOF
echo "Environment configuration generated:"
cat /usr/share/nginx/html/assets/env.js
# Start nginx
exec nginx -g 'daemon off;'