分类 运维 下的文章

附件harbor.zip

1、下载harbor安装包并解压

mkdir /data
https://github.com/goharbor/harbor/releases
tar -xvf harbor-offline-installer-v2.8.1.tgz 

2、复制配置文件并修改(主要是数据存储位置),禁用http 启用https,证书,域名

cd harbor
cp harbor.yml.tmpl harbor.yml

3、修改install.sh 文件,注释最后自动up,修改prepare 证书位置

4、执行安装

./prepare && ./install.sh 

5、修改docker-compose.yml中各容器名称,以及nginx 443端口

6、修改nginx配置文件中https的内容

vi common/config/nginx/nginx.conf

7、启动容器

8、配置反向代理中的nginx文件

vi hub.xxx.com.conf

server
{
    listen      443 ssl;
    server_name hub.xxx.com;
    include     /ssl/xxx.com.ssl;
    sendfile           on;
    sendfile_max_chunk 1m; # 最大传输块大小
    tcp_nopush         on;
    tcp_nodelay        on;
    keepalive_timeout   600;
    client_max_body_size 1500m;

    location / {
      proxy_pass    http://192.168.100.1:2080;
    }
}

https://hertzbeat.com/zh-cn

docker run -d -p 1157:1157 \
    -e LANG=zh_CN.UTF-8 \
    -e TZ=Asia/Shanghai \
    -v /data/hertzbeat:/opt/hertzbeat/data \
    -v /data/hertzbeat/logs:/opt/hertzbeat/logs \
    #-v /data/hertzbeat/config:/opt/hertzbeat/config \
    --restart=always \
    --network mynetwork \
    --name hertzbeat tancloud/hertzbeat

定制下载

https://firmware-selector.openwrt.org/
https://supes.top/
https://op.supes.top/

插件说明

https://www.right.com.cn/forum/thread-3682029-1-1.html

官网下载

https://firmware-selector.openwrt.org/?version=21.02.5

其它

https://github.com/haiibo/OpenWrt/releases/tag/X86_64
https://github.com/haiibo/OpenWrt

IP地址修改

vi /etc/config/network

mkdir /data/nexus3 && chown -R 200 /data/nexus3    

nexus 3 

docker stop nexus3 && docker rm nexus3 && docker run -it --name=nexus3 -p 84:8081 -v /data/nexus3:/nexus-data  -e INSTALL4J_ADD_VM_PARAMS="-Xms1024m -Xms1024m -XX:MaxDirectMemorySize=1024m -Djava.util.prefs.userRoot=/nexus-data" --restart=always -d sonatype/nexus3 

nexus 2 

docker stop nexus && docker rm nexus

docker run -it --name=nexus -p 84:8081 -v /data/nexus:/sonatype-work  --restart=always -d sonatype/nexus