添加 Harbor 安装和配置说明文档

This commit is contained in:
严浩
2024-10-16 18:00:38 +08:00
parent f80a7fb8fb
commit 475c19a782
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Duplicati
- https://github.com/linuxserver/docker-duplicati
- https://github.com/duplicati/duplicati/blob/master/ReleaseBuilder/Resources/Docker/README.md
## 启动
```bash
DUPLICATI_DOMAIN=❗️❗️❗️
DUPLICATI_PASSWORD=❗️❗️❗️
docker run -d -p 8500:8200 --name duplicati_canary \
-v duplicati-data:/data \
-v ~/_docker-stacks:/_docker-stacks \
-e "TZ=Asia/Shanghai" \
-e "DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=$DUPLICATI_DOMAIN" \
-e "DUPLICATI__WEBSERVICE_PASSWORD=$DUPLICATI_PASSWORD" \
duplicati/duplicati:canary
docker logs -f duplicati_canary
```
## 访问
```bash
DUPLICATI_DOMAIN=$(docker inspect duplicati_canary | grep DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES | awk -F '=' '{gsub(/",$/, "", $2); print $2}');
DUPLICATI_PASSWORD=$(docker inspect duplicati_canary | grep DUPLICATI__WEBSERVICE_PASSWORD | awk -F '=' '{gsub(/",$/, "", $2); print $2}');
URL="$DUPLICATI_DOMAIN:8500/login.html?password=$DUPLICATI_PASSWORD";
echo "🌐http://"
echo "$URL";
echo "🌐";
```

28
stacks/harbor/README.md Normal file
View File

@@ -0,0 +1,28 @@
# Harbor
## 安装启动
```bash
mkdir -p ~/_docker-stacks/harbor-root;
cd ~/_docker-stacks/harbor-root;
wget https://github.com/goharbor/harbor/releases/download/v2.11.1/harbor-online-installer-v2.11.1.tgz
tar xvf harbor-online-installer-v2.11.1.tgz
cd harbor
cp harbor.yml.tmpl harbor.yml
./install.sh
# ./install.sh --with-clair --with-chartmuseum
# ./install.sh --with-notary --with-clair --with-chartmuseum
```
## 要改的配置
```yaml
hostname: harbor.oo1.dev
http:
port: 8880
# https: # 注释掉
external_url: https://harbor.oo1.dev
harbor_admin_password:
database:
password:
data_volume: /harbor-data
```