Latest

Dify1.0.1本地Docker Compose部署+外网代理配置

Dify1.0.1本地Docker Compose部署+外网代理配置

1、参考官方本地部署文档从github下载代码仓库,以及基础配置 克隆 Dify 源代码至本地环境(假设本地主机的IP地址为192.168.0.135): # 假设当前最新版本为 1.0.1 git clone https://github.com/langgenius/dify.git --branch 1.0.1 进入 Dify 源代码的 Docker 目录: cd dify/docker 复制环境配置文件: cp .env.example .env 如果本地已经部署了NGINX等其他web服务,需要修改Dify的NGINX端口配置,修改.env文件: EXPOSE_NGINX_PORT=11080 EXPOSE_NGINX_SSL_
菱角

k8s部署单节点postgres

给postgres服务器节点打标签 kubectl get node --show-labels=true kubectl label nodes k8s-02 postgres-server=master postgres服务器节点创建目录 mkdir -p /home/postgres/data/data 编辑部署文件postgres.yaml apiVersion: v1 kind: Namespace metadata: name: k8s-postgres --- apiVersion: v1 kind: Service metadata: labels: app: postgres-master-out name: postgres-master-out namespace: k8s-postgres spec: type: NodePort ports: - port: 5432 targetPort: 5432
菱角

k8s部署单节点zookeeper

给zookeeper服务器节点打标签 kubectl get node --show-labels=true kubectl label nodes sd-redis zookeeper-server=master zookeeper服务器节点创建目录 mkdir -p /home/zookeeper/conf /home/zookeeper/data /home/zookeeper/datalog 编辑部署文件zookeeper.yaml apiVersion: v1 kind: Namespace metadata: name: k8s-zookeeper --- apiVersion: v1 kind: Service metadata: labels: app: zookeeper-cs name: zookeeper-cs namespace: k8s-zookeeper spec: type: NodePort ports:
菱角

使用harbar搭建私有容器仓库

下载离线安装包 mkdir -p /home/harbar/data cd /home/harbar wget https://github.com/goharbor/harbor/releases/download/v2.6.2/harbor-online-installer-v2.6.2.tgz tar -zxf harbor-online-installer-v2.6.2.tgz cd harbor cp harbor.yml.tmpl harbor.yml 编辑配置文件 harbor.yml tee /home/harbar/harbor/harbor.yml <<-'EOF' # Configuration file of Harbor # The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hos
菱角