打开settings, Go Modules->Enable Go modules integration
修改consts中的**Addr地址
vi docker-compose.yml
version: '3'
services:
minio:
image: minio/minio:RELEASE.2022-09-07T22-25-02Z
container_name: minio
ports:
- 9000:9000
- 9001:9001
volumes:
- /var/minio/data:/data
- /var/minio/config:/root/.minio
environment:
MINIO_ACCESS_KEY: "minioadmin"
MINIO_SECRET_KEY: "minioadmin"
command: server /data --console-address ":9001" -address ":9000"
restart: always
执行:docker-compose up -d
https://yourIP:9001/login 进行访问登录 账号密码都是minioadmin,创建video桶后记得public
https://www.gyan.dev/ffmpeg/builds/
输入ffmpeg -version验证(需要重启)
cd cmd/publish
sh build.sh
sh output/bootstrap.sh
cd cmd/interact
sh build.sh
sh output/bootstrap.sh
cd cmd/user
sh build.sh
sh output/bootstrap.sh
cd cmd/api
go run main.go