parent
f19dd7db44
commit
e34433c13e
@ -0,0 +1,68 @@
|
||||
# 查看容器的详细配置信息
|
||||
docker inspect mysql-de
|
||||
可以获取文件和目录的映射信息
|
||||
|
||||
# 停止正在运行的 MySQL 容器
|
||||
docker stop mysql-de
|
||||
|
||||
# 删除已停止的容器
|
||||
docker rm mysql-de
|
||||
|
||||
# 调试运行 -it,使用 -p 参数重新运行容器,并映射端口
|
||||
docker run -it -p 3306:3306 --name mysql-de \
|
||||
--mount type=bind,source=/opt/dataease2.0/data/mysql,target=/var/lib/mysql \
|
||||
--mount type=bind,source=/opt/dataease2.0/conf/my.cnf,target=/etc/mysql/conf.d/my.cnf \
|
||||
--mount type=bind,source=/opt/dataease2.0/bin/mysql,target=/docker-entrypoint-initdb.d \
|
||||
--env-file=/opt/dataease2.0/conf/mysql.env \
|
||||
registry.cn-qingdao.aliyuncs.com/dataease/mysql:8.4.0
|
||||
|
||||
# 后台运行 -d
|
||||
docker run -d -p 3306:3306 --name mysql-de \
|
||||
--mount type=bind,source=/opt/dataease2.0/data/mysql,target=/var/lib/mysql \
|
||||
--mount type=bind,source=/opt/dataease2.0/conf/my.cnf,target=/etc/mysql/conf.d/my.cnf \
|
||||
--mount type=bind,source=/opt/dataease2.0/bin/mysql,target=/docker-entrypoint-initdb.d \
|
||||
--env-file=/opt/dataease2.0/conf/mysql.env \
|
||||
registry.cn-qingdao.aliyuncs.com/dataease/mysql:8.4.0
|
||||
|
||||
|
||||
# 数据库用户名和密码
|
||||
username: root
|
||||
password: Password123@mysql
|
||||
|
||||
# 配置文件目录
|
||||
/opt/dataease2.0/conf
|
||||
|
||||
# 编辑application.yml
|
||||
# mysql://mysql-de:3306 ---> mysql://10.10.14.203:3306
|
||||
# 将docker name修改为宿主机的IP即可
|
||||
|
||||
[root@dataease conf]# cat application.yml
|
||||
server:
|
||||
tomcat:
|
||||
connection-timeout: 70000
|
||||
servlet:
|
||||
context-path:
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 500MB
|
||||
max-request-size: 500MB
|
||||
datasource:
|
||||
url: jdbc:mysql://10.10.14.203:3306/dataease?autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: Password123@mysql
|
||||
dataease:
|
||||
apisix-api:
|
||||
domain: http://apisix:9180
|
||||
key: DE_APISIX_KEY
|
||||
export:
|
||||
views:
|
||||
limit: 100000
|
||||
dataset:
|
||||
limit: 100000
|
||||
origin-list: http://localhost:8000
|
||||
task:
|
||||
executor:
|
||||
address: http://sync-task-actuator:9001
|
||||
log:
|
||||
path: /opt/dataease2.0/logs/sync-task/task-handler-log
|
Loading…
Reference in new issue