使用docker compose拉起 dubbo-admin
使用如下名为docker-admin文件拉起dubbo-admin,该文件源自dubbo-admin官方github源码仓库,如下路径:https://github.com/apache/dubbo-admin/blob/develop/docker/stack.ymlversion: '3'services:zookeeper:image: zookeeperports:- 2181:2181a
·
使用如下名为docker-admin文件拉起dubbo-admin,该文件源自dubbo-admin官方github源码仓库,如下路径:https://github.com/apache/dubbo-admin/blob/develop/docker/stack.yml
version: '3'
services:
zookeeper:
image: zookeeper
ports:
- 2181:2181
admin:
image: apache/dubbo-admin:latest
depends_on:
- zookeeper
ports:
- 10010:8080
# the db driver path
volumes:
- "/mnt/opt-libs:/opt-libs"
environment:
- admin.registry.address=zookeeper://zookeeper:2181
- admin.config-center=zookeeper://zookeeper:2181
- admin.metadata-report.address=zookeeper://zookeeper:2181
- dubbo.application.name=dubbo-admin
- dubbo.registry.address=zookeeper://zookeeper:2181
- mybatis-plus.global-config.db-config.id-type=none
- spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# - spring.datasource.url=jdbc:mysql://xxx:3306/dubbo-admin?characterEncoding=utf8&connectTimeout=1000&socketTimeout=10000&autoReconnect=true
# - spring.datasource.username=root
# - spring.datasource.password=mysql
# use internal h2 as database
- spring.datasource.url=jdbc:h2:mem:~/dubbo-admin;
- spring.datasource.username=sa
启动命令:docker compose -f dubbo-admin.yml up -d
用户名/密码:root/root
效果:
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)