Sign inSign up

mrweiland/gitlab-new-dashboard

By mrweiland

•Updated about 1 year ago

Image
0

368

mrweiland/gitlab-new-dashboard repository overview

⁠🚀 GitLab Dashboard

A modern, responsive dashboard for monitoring GitLab projects and pipelines, built with HTML, CSS, and JavaScript, served via nginx in Docker.

⁠✨ Features

  • 📊 Real-time Pipeline Monitoring: View the 5 latest GitLab pipelines
  • 🏗️ Project Overview: Monitor all your GitLab projects and repositories
  • 🔐 Secure Token Injection: Inject GitLab tokens via environment variables
  • 🌐 Responsive Design: Modern UI built with Tailwind CSS
  • 📱 Mobile Friendly: Optimized for all device sizes
  • 🚀 Docker Ready: Easy deployment with Docker and Docker Compose

⁠🐳 Quick Start with Docker Hub

# Run directly with your GitLab token
docker run -d \
  --name gitlab-dashboard \
  -p 8080:80 \
  -e GITLAB_TOKEN=glpat-your-token-here \
  mrweiland/gitlab-new-dashboard:latest
⁠Option 2: Run with Environment File
# Create environment file
cat > .env << EOF
GITLAB_TOKEN=glpat-your-token-here
GITLAB_BASE_URL=https://gitlab.com/api/v4
MAX_REPOSITORIES=20
DASHBOARD_TITLE=My GitLab Dashboard
EOF

# Run with environment file
docker run -d \
  --name gitlab-dashboard \
  -p 8080:80 \
  --env-file .env \
  mrweiland/gitlab-new-dashboard:latest
⁠Option 3: Run with Docker Compose
# Create docker-compose.yml
cat > docker-compose.yml << EOF
version: '3.8'
services:
  gitlab-dashboard:
    image: mrweiland/gitlab-new-dashboard:latest
    container_name: gitlab-dashboard
    ports:
      - "8080:80"
    environment:
      - GITLAB_TOKEN=glpat-your-token-here
      - GITLAB_BASE_URL=https://gitlab.com/api/v4
      - MAX_REPOSITORIES=20
      - DASHBOARD_TITLE=My GitLab Dashboard
    restart: unless-stopped
EOF

# Start the service
docker-compose up -d

⁠🔑 Getting Your GitLab Token

  1. Go to GitLab Personal Access Tokens⁠
  2. Create a new token with the following scopes:
    • read_api - Read access to GitLab API
    • read_repository - Read access to repositories
    • read_user - Read access to user information
  3. Copy the generated token (starts with glpat-)

⁠📦 Update from Docker Hub

# Stop and remove old container
docker stop gitlab-dashboard
docker rm gitlab-dashboard

# Pull latest version
docker pull mrweiland/gitlab-new-dashboard:latest

# Run with your token
docker run -d \
  --name gitlab-dashboard \
  -p 8080:80 \
  -e GITLAB_TOKEN=glpat-your-token-here \
  mrweiland/gitlab-new-dashboard:latest

⁠🏢 Self-Hosted GitLab

# Run with custom GitLab instance
docker run -d \
  --name gitlab-dashboard \
  -p 8080:80 \
  -e GITLAB_TOKEN=glpat-your-token-here \
  -e GITLAB_BASE_URL=https://your-gitlab.company.com/api/v4 \
  mrweiland/gitlab-new-dashboard:latest

⁠🌐 Access Your Dashboard

Once running, access your dashboard at:

⁠🔧 Configuration Options

Environment VariableDefaultDescription
GITLAB_TOKEN(required)Your GitLab Personal Access Token
GITLAB_BASE_URLhttps://gitlab.com/api/v4GitLab API URL (use for self-hosted)
MAX_REPOSITORIES20Maximum repositories to load
DASHBOARD_TITLEGitLab New DashboardCustom dashboard title

Tag summary

Content type

Image

Digest

sha256:8020a7e6d…

Size

46.8 MB

Last updated

about 1 year ago

docker pull mrweiland/gitlab-new-dashboard