rocketmq-dashboard docker部署设置账号密码

用户配置

下载user.properties改改,或者直接新建文本,配置用户名密码:

# This file supports hot change, any change will be auto-reloaded without Dashboard restarting.
# Format: a user per line, username=password[,N] #N is optional, 0 (Normal User); 1 (Admin)

# Define Admin
admin=admin123,1

# Define Users
user1=user111

docker-compose:

version: '3.8'

services:
  rocketmq-dashboard:
    image: apacherocketmq/rocketmq-dashboard:1.0.0
    ports:
      - 8060:8080
    volumes:
      # 数据目录映射, user.properties需要放在data目录下
      - /apps/rocketmq-dashboard/data:/tmp/rocketmq-console/data 
    environment:
      - NAMESRV_ADDR=127.0.0.1:9876
      # 开启登录认证
      - ROCKETMQ_CONFIG_LOGIN_REQUIRED=true 

你可能感兴趣的:(rocketmq,docker,容器)