docker-compose搭建NPS

新建文件夹 /opt/nps

/opt/nps文件夹下新建 docker-compose.yml 文件

  • 文件内容:
1
2
3
4
5
6
7
8
9
10
version: "3"
services:
minio:
privileged: true
image: ffdfgdfg/nps:latest
container_name: nps
restart: always
network_mode: "host"
volumes:
- /opt/nps/conf:/conf

下载配置文件

  • github下载配置文件,
1
https://github.com/ehang-io/nps
  • 整个 conf 文件夹

  • 下载完这个文件夹包含这些文件

修改配置文件

  • 修改 nps.conf
  • 修改账号密码或者端口

  • nps 未授权和默认key修复方法

  • 还是 nps.conf配置文件
  • 取消掉 auth_key的注释,把后面的值改一下

启动

1
docker compose up -d