docker swarm 通过 docker-compose.yml发布service
docker-compose.yml文件 version: '3.2' services: main: image: registry.cn-shenzhen.aliyuncs.com/xxx/xxx:v0.0.2 po
LATEST UPDATES
记录 PHP、Go、前端与服务器运维的真实实践,涵盖 uniapp 小程序、Docker、Nginx 与 AI Agent 的使用心得,每篇都来自项目里的踩坑与验证。
docker-compose.yml文件 version: '3.2' services: main: image: registry.cn-shenzhen.aliyuncs.com/xxx/xxx:v0.0.2 po
docker service create --replicas 1 --name hndf-admin-go-api -p 8080:8080 --mount type=bind,src=/www/wwwroot/hndf_admin.d
直接上代码 // 这里有三个状态 prerender,visible 和 hidden let pageVisibleStatus = document.visibilityState; // 监听页面状态 document.addEven
# builder FROM golang:alpine AS builder ENV GO111MODULE=on ENV GOPROXY="https://goproxy.cn" WORKDIR /go/src/ap
首先导入go的yum源 rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO curl -s https://mirror.go-repo.io/centos/g
准备 主从数据库版本最好一致 主从数据库内数据保持一致 主数据库:192.168.1.31 /linux 从数据库:192.168.1.32 /linux 在主数据库上的操作 找到配置文件,并修改它,找到[mysqld] log-bin=m
.drone.yml 文件 kind: pipeline type: docker name: default steps: - name: 编译 image: golang:1.16.5-alpine pull: if-not-exist