Harbor

Harbor - Cloud native container registry

80
Default Port
6
Services
32.0/20
Complexity
High
Memory Usage
Configuration

Installation Command

blastdock init harbor

Template Overview

Everything you need to deploy Harbor with BlastDock

Quick Deploy

One command deployment

Secure

Production-ready security

Configurable

Customizable settings

Scalable

Ready to scale up

What's Included

Harbor-core
goharbor/harbor-core:v2.6.0
Harbor-portal
goharbor/harbor-portal:v2.6.0
Harbor-db
postgres:13
Harbor-jobservice
goharbor/harbor-jobservice:v2.6.0
Harbor-registry
goharbor/registry-photon:v2.6.0
Redis
redis:6
Categories
Other
Security Features
Password Protection, SSL/HTTPS Support, Admin User
Resource Requirements
CPU: High, Memory: High , Storage Required

Quick Commands

blastdock init Initialize new project
blastdock deploy Deploy the application
blastdock status Check deployment status
blastdock logs View application logs

Quick Installation

Get Harbor up and running in minutes with our one-click installation.

BlastDock Installation

First, install BlastDock using pip (recommended):

Terminal
pip install blastdock

Then deploy Harbor with:

Terminal
blastdock init harbor

Interactive mode:

Terminal
blastdock init harbor -i

What's Included

Harbor-core
Container service
Harbor-portal
Container service
Harbor-db
Container service
Harbor-jobservice
Container service
Harbor-registry
Container service
Redis
Container service

BlastDock Commands

blastdock templates List available templates
blastdock status project Check deployment status
blastdock logs project View application logs
blastdock stop project Stop deployment

Configuration Options

Customize your Harbor installation with these configuration options.

5
Required Fields
0
Optional Fields
2
Auto-Generated Passwords

Http Port

HTTP port

port
Default: 80
Required: Yes

Https Port

HTTPS port

port
Default: 443
Required: Yes

Admin Password

Admin password

password
Default: ••••••••••••
Required: Yes
Security: Auto-generated

Db Password

Database password

password
Default: ••••••••••••
Required: Yes
Security: Auto-generated

Hostname

External URL (domain/IP)

domain
Default: localhost
Required: Yes

Docker Compose

Complete Docker Compose configuration for Harbor deployment.

7
Services
5
Volumes
1
Networks
2
Exposed Ports
docker-compose.yml
version: '3.8'

services:
  harbor-core:
    image: goharbor/harbor-core:v2.6.0
    container_name: {{ project_name }}_harbor_core
    restart: unless-stopped
    depends_on:
      - harbor-db
      - redis
    environment:
      0: CORE_SECRET=core-secret
      1: JOBSERVICE_SECRET=jobservice-secret
      2: HARBOR_ADMIN_PASSWORD={{ admin_password }}
      3: DATABASE_TYPE=postgresql
      4: POSTGRESQL_HOST=harbor-db
      5: POSTGRESQL_PORT=5432
      6: POSTGRESQL_USERNAME=postgres
      7: POSTGRESQL_PASSWORD={{ db_password }}
      8: POSTGRESQL_DATABASE=registry
      - REGISTRY_URL=http: //harbor-registry:5000
      - PORTAL_URL=http: //harbor-portal:8080
      - TOKEN_SERVICE_URL=http: //harbor-core:8080/service/token
      - HARBOR_EXTERNAL_URL=https: //{{ hostname }}
    volumes:
      - /data
    networks:
      - harbor_network

  harbor-portal:
    image: goharbor/harbor-portal:v2.6.0
    container_name: {{ project_name }}_harbor_portal
    restart: unless-stopped
    networks:
      - harbor_network

  harbor-db:
    image: postgres:13
    container_name: {{ project_name }}_harbor_db
    restart: unless-stopped
    environment:
      0: POSTGRES_PASSWORD={{ db_password }}
      1: POSTGRES_DB=registry
    volumes:
      - /var/lib/postgresql/data
    networks:
      - harbor_network

  harbor-jobservice:
    image: goharbor/harbor-jobservice:v2.6.0
    container_name: {{ project_name }}_harbor_jobservice
    restart: unless-stopped
    depends_on:
      - harbor-core
      - redis
    environment:
      - CORE_URL=http: //harbor-core:8080
      0: JOBSERVICE_SECRET=jobservice-secret
      - REGISTRY_URL=http: //harbor-registry:5000
    volumes:
      - /var/log/jobs
    networks:
      - harbor_network

  harbor-registry:
    image: goharbor/registry-photon:v2.6.0
    container_name: {{ project_name }}_harbor_registry
    restart: unless-stopped
    volumes:
      - /storage
    networks:
      - harbor_network

  redis:
    image: redis:6
    container_name: {{ project_name }}_redis
    restart: unless-stopped
    volumes:
      - /data
    networks:
      - harbor_network

  nginx:
    image: goharbor/nginx-photon:v2.6.0
    container_name: {{ project_name }}_nginx
    restart: unless-stopped
    depends_on:
      - harbor-core
      - harbor-portal
      - harbor-registry
    ports:
      - "80"
      - "443"
    networks:
      - harbor_network

volumes:
  harbor_core_data:
    driver: local

  harbor_db_data:
    driver: local

  harbor_jobservice_data:
    driver: local

  harbor_registry_data:
    driver: local

  harbor_redis_data:
    driver: local

networks:
  harbor_network:
    driver: bridge