You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yiminyangguang520 (via GitHub)" <gi...@apache.org> on 2023/03/28 04:28:26 UTC
[GitHub] [rocketmq-dashboard] yiminyangguang520 commented on issue #97: 能否给个docker-compose.yml 示例,包含登录配置的
yiminyangguang520 commented on issue #97:
URL: https://github.com/apache/rocketmq-dashboard/issues/97#issuecomment-1486198619
**docker compose**
version: "3"
services:
dashboard:
image: apacherocketmq/rocketmq-dashboard:latest
container_name: rocketmq-dashbord
ports:
- 8080:8080
environment:
JAVA_OPTS: "-Drocketmq.namesrv.addr=*.*.*.*:9876;*.*.*.*:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false -Djava.security.egd=file:/dev/./urandom -Dspring.config.location=/tmp/rocketmq-console/data/application.properties"
volumes:
- /data/rmq-dashbord/config:/tmp/rocketmq-console/data
restart: unless-stopped
**application.properties:**
server.address=0.0.0.0
server.port=8080
server.servlet.context-path=/rmq
### SSL setting
#server.ssl.key-store=classpath:rmqcngkeystore.jks
#server.ssl.key-store-password=rocketmq
#server.ssl.keyStoreType=PKCS12
#server.ssl.keyAlias=rmqcngkey
#spring.application.index=true
spring.application.name=rocketmq-dashboard
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
logging.level.root=INFO
logging.config=classpath:logback.xml
#if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
rocketmq.config.namesrvAddr=
#if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
rocketmq.config.isVIPChannel=
#timeout for mqadminExt, default 5000ms
rocketmq.config.timeoutMillis=
#rocketmq-console's data path:dashboard/monitor
rocketmq.config.dataPath=/tmp/rocketmq-console/data
#set it false if you don't want use dashboard.default true
rocketmq.config.enableDashBoardCollect=true
#set the message track trace topic if you don't want use the default one
rocketmq.config.msgTrackTopicName=
rocketmq.config.ticketKey=ticket
#Must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required
rocketmq.config.loginRequired=true
#set the accessKey and secretKey if you used acl
#rocketmq.config.accessKey=
#rocketmq.config.secretKey=
rocketmq.config.useTLS=false
**users.properties**
# This file supports hot change, any change will be auto-reloaded without Console restarting.
# Format: a user per line, username=password[,N] #N is optional, 0 (Normal User); 1 (Admin)
# Define Admin
admin=admin
# Define Users
user1=user1
user2=user2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org