一、建立配置文件
1. 新建文件夹
mkdir /panel/docker/baget-data/packages
2. 新建配置文件
mk /panel/docker/baget-data/baget.env
ApiKey=APISSSSS
Storage__Type=FileSystem
Storage__Path=/panel/docker/baget-data/packages
Database__Type=MySql
Database__ConnectionString=server=127.0.0.1;user=root;password=YourPassword;database=baget;
Search__Type=Database
Mirror__Enabled=true
docker 镜像
docker run -p 45555:80 --restart=always -d --env-file /panel/docker/baget-data/baget.env -v /panel/docker/baget-data:/var/baget --name nuget-server loicsharma/baget:latest
标签:__,Baget,Type,baget,Mysql,Docker,data,docker,panel
From: https://www.cnblogs.com/Amaya/p/18464681