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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]