Harbor
Sứ mệnh của chúng tôi là trở thành kho lưu trữ gốc đám mây đáng tin cậy cho Kubernetes
Hướng dẫn cài đặt Harbor bằng Docker Compose
1. Tải xuống các tệp cài đặt Harbor
2. Tạo tệp cấu hình harbor.yml
harbor.yml3. Tạo tệp docker-compose.yml
docker-compose.ymlversion: '3.5'
services:
log:
image: goharbor/harbor-log:v2.3.0
container_name: harbor-log
restart: always
volumes:
- /var/log/harbor/:/var/log/docker/:z
networks:
- harbor
registry:
image: goharbor/registry-photon:v2.3.0
container_name: registry
restart: always
volumes:
- /data/registry:/storage:z
networks:
- harbor
registryctl:
image: goharbor/harbor-registryctl:v2.3.0
container_name: registryctl
restart: always
volumes:
- /data/registry:/storage:z
networks:
- harbor
postgresql:
image: goharbor/harbor-db:v2.3.0
container_name: harbor-db
restart: always
volumes:
- /data/database:/var/lib/postgresql/data:z
networks:
- harbor
redis:
image: goharbor/redis-photon:v2.3.0
container_name: redis
restart: always
networks:
- harbor
core:
image: goharbor/harbor-core:v2.3.0
container_name: harbor-core
restart: always
depends_on:
- postgresql
- redis
- registry
networks:
- harbor
portal:
image: goharbor/harbor-portal:v2.3.0
container_name: harbor-portal
restart: always
networks:
- harbor
jobservice:
image: goharbor/harbor-jobservice:v2.3.0
container_name: harbor-jobservice
restart: always
networks:
- harbor
trivy-adapter:
image: goharbor/trivy-adapter-photon:v2.3.0
container_name: trivy-adapter
restart: always
networks:
- harbor
proxy:
image: goharbor/nginx-photon:v2.3.0
container_name: nginx
restart: always
networks:
- harbor
ports:
- 80:80
- 443:443
- 4443:4443
depends_on:
- core
- portal
- registry
- trivy-adapter
networks:
harbor:
external: false4. Khởi chạy Harbor
5. Cấu hình và sử dụng Harbor
Last updated