1Panel下Docker部署GoEdge CDN

官方wiki

一键安装代码:

docker run -d \
  --name edge-admin \
  --network 1panel-network \
  -p 7788:7788 \
  -p 8001:8001 \
  -v /opt/goedge/mysql:/var/lib/mysql \
  -v /opt/goedge/configs:/usr/local/goedge/edge-admin/configs \
  -v /opt/goedge/logs:/usr/local/goedge/edge-admin/logs \
  -v /opt/goedge/api-configs:/usr/local/goedge/edge-admin/edge-api/configs \
  -v /opt/goedge/api-logs:/usr/local/goedge/edge-admin/edge-api/logs \
  goedge/edge-admin:latest

数据库地址填写 mysql,其他正常安装即可

升级命令

docker exec -it 容器ID /usr/local/goedge/edge-admin/bin/edge-admin upgrade

重启实例

docker restart 容器ID