0


docker环境部署postgres版本nacos

1、docker安装postgres
执行命令:docker pull postgres 拉取最新版postgres
在这里插入图片描述
2、查看postgres镜像是否安装成功: docker imags(查看镜像),可以看到已经拉取到了最新版本 的postgres镜像
在这里插入图片描述
3、编辑一个docker-compose.yml文件,账号是postgres,密码是123456,data目录会自动创建。
在这里插入图片描述

在这里插入图片描述

  1. version: "3.8"
  2. services:
  3. dev-postgres:
  4. image: postgres:latest
  5. container_name: postgres
  6. environment:
  7. POSTGRES_USER: postgres
  8. POSTGRES_PASSWORD: 123456
  9. ports:
  10. - 15433:5432
  11. volumes:
  12. -./data:/var/lib/postgresql/data-/etc/localtime:/etc/localtime:ro #将外边时间直接挂载到容器内部,权限只读
  13. restart: always

4、使用docker-compose up -d 后台启动postgres,启动成功使用docker ps -a 查看docker容器,可以看到postgres容器已经创建,对外端口号是15433。
在这里插入图片描述
在这里插入图片描述
5、使用客户端工具连接postgres,输入ip,端口号,账号,密码连接postgres
在这里插入图片描述
6、添加一个nacos数据库,导入相关表。相关表我放在网盘里可以直接提取nacos-config.sql文件导入。我把sql放在文章最后,不想用百度网盘可以直接复制运行。
链接:https://pan.baidu.com/s/1ZOfrc2yWllBSgcgV8-o0-Q
提取码:e2hb
在这里插入图片描述
7、创建nacos目录,并上传相关文件plugins是一个postgres插件,因为nacos是mysql,想要支持postgres需要插件。conf下的application.properties是nacos配置文件。可进行nacos配置。相关文件我上传到百度网盘可进行提取。nacos安装需要jdk环境如果没有请参考https://editor.csdn.net/md/?articleId=131560825安装
在这里插入图片描述

application.properties文件内容

  1. #
  2. # Copyright 1999-2021 Alibaba Group Holding Ltd.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. #*************** Spring Boot Related Configurations ***************#
  17. ### Default web context path:
  18. server.servlet.contextPath=/nacos
  19. ### Include message field
  20. server.error.include-message=ALWAYS
  21. ### Default web server port:
  22. server.port=8848
  23. #*************** Network Related Configurations ***************#
  24. ### If prefer hostname over ip for Nacos server addresses in cluster.conf:
  25. # nacos.inetutils.prefer-hostname-over-ip=false
  26. ### Specify local server's IP:
  27. # nacos.inetutils.ip-address=
  28. #*************** Config Module Related Configurations ***************#
  29. ### If use MySQL as datasource:
  30. ### Deprecated configuration property, it is recommended to use `spring.sql.init.platform` replaced.
  31. # spring.datasource.platform=postgresql
  32. #spring.sql.init.platform=mysql
  33. ### Count of DB:
  34. #db.num=1
  35. ### Connect URL of DB:
  36. #db.url.0=jdbc:mysql://127.0.0.1:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
  37. #db.user.0=root
  38. #db.password.0=root
  39. spring.datasource.platform=postgresql
  40. db.num=1
  41. db.url.0=jdbc:postgresql://localhost:15433/nacos_config?tcpKeepAlive=true&reWriteBatchedInserts=true&ApplicationName=nacos_java
  42. db.user=postgres
  43. db.password=123456
  44. db.pool.config.driverClassName=org.postgresql.Driver
  45. ### Connection pool configuration: hikariCP
  46. db.pool.config.connectionTimeout=30000
  47. db.pool.config.validationTimeout=10000
  48. db.pool.config.maximumPoolSize=20
  49. db.pool.config.minimumIdle=2
  50. #*************** Naming Module Related Configurations ***************#
  51. ### If enable data warmup. If set to false, the server would accept request without local data preparation:
  52. # nacos.naming.data.warmup=true
  53. ### If enable the instance auto expiration, kind like of health check of instance:
  54. # nacos.naming.expireInstance=true
  55. ### Add in 2.0.0
  56. ### The interval to clean empty service, unit: milliseconds.
  57. # nacos.naming.clean.empty-service.interval=60000
  58. ### The expired time to clean empty service, unit: milliseconds.
  59. # nacos.naming.clean.empty-service.expired-time=60000
  60. ### The interval to clean expired metadata, unit: milliseconds.
  61. # nacos.naming.clean.expired-metadata.interval=5000
  62. ### The expired time to clean metadata, unit: milliseconds.
  63. # nacos.naming.clean.expired-metadata.expired-time=60000
  64. ### The delay time before push task to execute from service changed, unit: milliseconds.
  65. # nacos.naming.push.pushTaskDelay=500
  66. ### The timeout for push task execute, unit: milliseconds.
  67. # nacos.naming.push.pushTaskTimeout=5000
  68. ### The delay time for retrying failed push task, unit: milliseconds.
  69. # nacos.naming.push.pushTaskRetryDelay=1000
  70. ### Since 2.0.3
  71. ### The expired time for inactive client, unit: milliseconds.
  72. # nacos.naming.client.expired.time=180000
  73. #*************** CMDB Module Related Configurations ***************#
  74. ### The interval to dump external CMDB in seconds:
  75. # nacos.cmdb.dumpTaskInterval=3600
  76. ### The interval of polling data change event in seconds:
  77. # nacos.cmdb.eventTaskInterval=10
  78. ### The interval of loading labels in seconds:
  79. # nacos.cmdb.labelTaskInterval=300
  80. ### If turn on data loading task:
  81. # nacos.cmdb.loadDataAtStart=false
  82. #*************** Metrics Related Configurations ***************#
  83. ### Metrics for prometheus
  84. #management.endpoints.web.exposure.include=*
  85. ### Metrics for elastic search
  86. management.metrics.export.elastic.enabled=false
  87. #management.metrics.export.elastic.host=http://localhost:9200
  88. ### Metrics for influx
  89. management.metrics.export.influx.enabled=false
  90. #management.metrics.export.influx.db=springboot
  91. #management.metrics.export.influx.uri=http://localhost:8086
  92. #management.metrics.export.influx.auto-create-db=true
  93. #management.metrics.export.influx.consistency=one
  94. #management.metrics.export.influx.compressed=true
  95. #*************** Access Log Related Configurations ***************#
  96. ### If turn on the access log:
  97. server.tomcat.accesslog.enabled=true
  98. ### The access log pattern:
  99. server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
  100. ### The directory of access log:
  101. server.tomcat.basedir=file:.
  102. #*************** Access Control Related Configurations ***************#
  103. ### If enable spring security, this option is deprecated in 1.2.0:
  104. #spring.security.enabled=false
  105. ### The ignore urls of auth
  106. nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
  107. ### The auth system to use, currently only 'nacos' and 'ldap' is supported:
  108. nacos.core.auth.system.type=nacos
  109. ### If turn on auth system:
  110. nacos.core.auth.enabled=true
  111. ### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
  112. nacos.core.auth.caching.enabled=true
  113. ### Since 1.4.1, Turn on/off white auth for user-agent: nacos-server, only for upgrade from old version.
  114. nacos.core.auth.enable.userAgentAuthWhite=false
  115. ### Since 1.4.1, worked when nacos.core.auth.enabled=true and nacos.core.auth.enable.userAgentAuthWhite=false.
  116. ### The two properties is the white list for auth and used by identity the request from other server.
  117. nacos.core.auth.server.identity.key=test
  118. nacos.core.auth.server.identity.value=test
  119. ### worked when nacos.core.auth.system.type=nacos
  120. ### The token expiration in seconds:
  121. nacos.core.auth.plugin.nacos.token.cache.enable=false
  122. nacos.core.auth.plugin.nacos.token.expire.seconds=18000
  123. ### The default token (Base64 String):
  124. nacos.core.auth.plugin.nacos.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789
  125. ### worked when nacos.core.auth.system.type=ldap,{0} is Placeholder,replace login username
  126. #nacos.core.auth.ldap.url=ldap://localhost:389
  127. #nacos.core.auth.ldap.basedc=dc=example,dc=org
  128. #nacos.core.auth.ldap.userDn=cn=admin,${nacos.core.auth.ldap.basedc}
  129. #nacos.core.auth.ldap.password=admin
  130. #nacos.core.auth.ldap.userdn=cn={0},dc=example,dc=org
  131. #nacos.core.auth.ldap.filter.prefix=uid
  132. #nacos.core.auth.ldap.case.sensitive=true
  133. #*************** Istio Related Configurations ***************#
  134. ### If turn on the MCP server:
  135. nacos.istio.mcp.server.enabled=false
  136. ### nacos访问地址的密码
  137. nacos.config.password=nacos
  138. ### nacos访问地址的用户名
  139. nacos.config.username=nacos
  140. #*************** Core Related Configurations ***************#
  141. ### set the WorkerID manually
  142. # nacos.core.snowflake.worker-id=
  143. ### Member-MetaData
  144. # nacos.core.member.meta.site=
  145. # nacos.core.member.meta.adweight=
  146. # nacos.core.member.meta.weight=
  147. ### MemberLookup
  148. ### Addressing pattern category, If set, the priority is highest
  149. # nacos.core.member.lookup.type=[file,address-server]
  150. ## Set the cluster list with a configuration file or command-line argument
  151. # nacos.member.list=192.168.16.101:8847?raft_port=8807,192.168.16.101?raft_port=8808,192.168.16.101:8849?raft_port=8809
  152. ## for AddressServerMemberLookup
  153. # Maximum number of retries to query the address server upon initialization
  154. # nacos.core.address-server.retry=5
  155. ## Server domain name address of [address-server] mode
  156. # address.server.domain=jmenv.tbsite.net
  157. ## Server port of [address-server] mode
  158. # address.server.port=8080
  159. ## Request address of [address-server] mode
  160. # address.server.url=/nacos/serverlist
  161. #*************** JRaft Related Configurations ***************#
  162. ### Sets the Raft cluster election timeout, default value is 5 second
  163. # nacos.core.protocol.raft.data.election_timeout_ms=5000
  164. ### Sets the amount of time the Raft snapshot will execute periodically, default is 30 minute
  165. # nacos.core.protocol.raft.data.snapshot_interval_secs=30
  166. ### raft internal worker threads
  167. # nacos.core.protocol.raft.data.core_thread_num=8
  168. ### Number of threads required for raft business request processing
  169. # nacos.core.protocol.raft.data.cli_service_thread_num=4
  170. ### raft linear read strategy. Safe linear reads are used by default, that is, the Leader tenure is confirmed by heartbeat
  171. # nacos.core.protocol.raft.data.read_index_type=ReadOnlySafe
  172. ### rpc request timeout, default 5 seconds
  173. # nacos.core.protocol.raft.data.rpc_request_timeout_ms=5000
  174. #*************** Distro Related Configurations ***************#
  175. ### Distro data sync delay time, when sync task delayed, task will be merged for same data key. Default 1 second.
  176. # nacos.core.protocol.distro.data.sync.delayMs=1000
  177. ### Distro data sync timeout for one sync data, default 3 seconds.
  178. # nacos.core.protocol.distro.data.sync.timeoutMs=3000
  179. ### Distro data sync retry delay time when sync data failed or timeout, same behavior with delayMs, default 3 seconds.
  180. # nacos.core.protocol.distro.data.sync.retryDelayMs=3000
  181. ### Distro data verify interval time, verify synced data whether expired for a interval. Default 5 seconds.
  182. # nacos.core.protocol.distro.data.verify.intervalMs=5000
  183. ### Distro data verify timeout for one verify, default 3 seconds.
  184. # nacos.core.protocol.distro.data.verify.timeoutMs=3000
  185. ### Distro data load retry delay when load snapshot data failed, default 30 seconds.
  186. # nacos.core.protocol.distro.data.load.retryDelayMs=30000
  187. ### enable to support prometheus service discovery
  188. #nacos.prometheus.metrics.enabled=true
  189. ### Since 2.3
  190. #*************** Grpc Configurations ***************#
  191. ## sdk grpc(between nacos server and client) configuration
  192. ## Sets the maximum message size allowed to be received on the server.
  193. #nacos.remote.server.grpc.sdk.max-inbound-message-size=10485760
  194. ## Sets the time(milliseconds) without read activity before sending a keepalive ping. The typical default is two hours.
  195. #nacos.remote.server.grpc.sdk.keep-alive-time=7200000
  196. ## Sets a time(milliseconds) waiting for read activity after sending a keepalive ping. Defaults to 20 seconds.
  197. #nacos.remote.server.grpc.sdk.keep-alive-timeout=20000
  198. ## Sets a time(milliseconds) that specify the most aggressive keep-alive time clients are permitted to configure. The typical default is 5 minutes
  199. #nacos.remote.server.grpc.sdk.permit-keep-alive-time=300000
  200. ## cluster grpc(inside the nacos server) configuration
  201. #nacos.remote.server.grpc.cluster.max-inbound-message-size=10485760
  202. ## Sets the time(milliseconds) without read activity before sending a keepalive ping. The typical default is two hours.
  203. #nacos.remote.server.grpc.cluster.keep-alive-time=7200000
  204. ## Sets a time(milliseconds) waiting for read activity after sending a keepalive ping. Defaults to 20 seconds.
  205. #nacos.remote.server.grpc.cluster.keep-alive-timeout=20000
  206. ## Sets a time(milliseconds) that specify the most aggressive keep-alive time clients are permitted to configure. The typical default is 5 minutes
  207. #nacos.remote.server.grpc.cluster.permit-keep-alive-time=300000

如下图修改数据库连接,和nacos登录账号密码,默认账号密码都是nacos
在这里插入图片描述在这里插入图片描述

docker-compos.yml文件(对外映射端口为18848)

  1. version: "3"
  2. services:
  3. nacos-pgsql:
  4. image: nacos/nacos-server:v2.2.3
  5. container_name: nacos-pgsql
  6. volumes:
  7. - ./logs:/home/nacos/logs
  8. - ./data:/home/nacos/data
  9. - ./plugins/:/home/nacos/plugins
  10. - ./conf/application.properties:/home/nacos/conf/application.properties:rw
  11. ports:
  12. - '18848:8848'
  13. - '19848:9848'
  14. environment:
  15. - MODE=standalone
  16. - PREFER_HOST_MODE=hostname
  17. - NACOS_SERVER_PORT=8848
  18. restart: always

8、执行命令docker-compose up -d 启动nacos后可使用 docker logs -f --tail=1000 nacos-pgsql 查看启动日志
在这里插入图片描述
9、docker ps -a 查看nacos容器已经启动成功
在这里插入图片描述
10、页面访问:
在这里插入图片描述

这里的配置信息是导入的config_info表,我默认添加的是ruoyi微服务版本的配置信息,可根据实际情况修改。
11、最后附上导入的sql:nacos_config.sql文件

  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 本地postgres
  4. Source Server Type : PostgreSQL
  5. Source Server Version : 140001
  6. Source Host : 192.168.159.141:15433
  7. Source Catalog : nacos_config
  8. Source Schema : public
  9. Target Server Type : PostgreSQL
  10. Target Server Version : 140001
  11. File Encoding : 65001
  12. Date: 07/07/2023 13:04:39
  13. */-- ------------------------------ Sequence structure for config_info_aggr_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_info_aggr_id_seq";CREATE SEQUENCE "public"."config_info_aggr_id_seq"
  14. INCREMENT 1
  15. MINVALUE 1
  16. MAXVALUE 9223372036854775807START1
  17. CACHE 1;-- ------------------------------ Sequence structure for config_info_beta_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_info_beta_id_seq";CREATE SEQUENCE "public"."config_info_beta_id_seq"
  18. INCREMENT 1
  19. MINVALUE 1
  20. MAXVALUE 9223372036854775807START1
  21. CACHE 1;-- ------------------------------ Sequence structure for config_info_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_info_id_seq";CREATE SEQUENCE "public"."config_info_id_seq"
  22. INCREMENT 1
  23. MINVALUE 1
  24. MAXVALUE 9223372036854775807START1
  25. CACHE 1;-- ------------------------------ Sequence structure for config_info_tag_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_info_tag_id_seq";CREATE SEQUENCE "public"."config_info_tag_id_seq"
  26. INCREMENT 1
  27. MINVALUE 1
  28. MAXVALUE 9223372036854775807START1
  29. CACHE 1;-- ------------------------------ Sequence structure for config_tags_relation_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_tags_relation_id_seq";CREATE SEQUENCE "public"."config_tags_relation_id_seq"
  30. INCREMENT 1
  31. MINVALUE 1
  32. MAXVALUE 9223372036854775807START1
  33. CACHE 1;-- ------------------------------ Sequence structure for config_tags_relation_nid_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."config_tags_relation_nid_seq";CREATE SEQUENCE "public"."config_tags_relation_nid_seq"
  34. INCREMENT 1
  35. MINVALUE 1
  36. MAXVALUE 9223372036854775807START1
  37. CACHE 1;-- ------------------------------ Sequence structure for group_capacity_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."group_capacity_id_seq";CREATE SEQUENCE "public"."group_capacity_id_seq"
  38. INCREMENT 1
  39. MINVALUE 1
  40. MAXVALUE 9223372036854775807START1
  41. CACHE 1;-- ------------------------------ Sequence structure for his_config_info_nid_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."his_config_info_nid_seq";CREATE SEQUENCE "public"."his_config_info_nid_seq"
  42. INCREMENT 1
  43. MINVALUE 1
  44. MAXVALUE 9223372036854775807START1
  45. CACHE 1;-- ------------------------------ Sequence structure for tenant_capacity_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."tenant_capacity_id_seq";CREATE SEQUENCE "public"."tenant_capacity_id_seq"
  46. INCREMENT 1
  47. MINVALUE 1
  48. MAXVALUE 9223372036854775807START1
  49. CACHE 1;-- ------------------------------ Sequence structure for tenant_info_id_seq-- ----------------------------DROP SEQUENCE IFEXISTS"public"."tenant_info_id_seq";CREATE SEQUENCE "public"."tenant_info_id_seq"
  50. INCREMENT 1
  51. MINVALUE 1
  52. MAXVALUE 9223372036854775807START1
  53. CACHE 1;-- ------------------------------ Table structure for config_info-- ----------------------------DROPTABLEIFEXISTS"public"."config_info";CREATETABLE"public"."config_info"("id" int8 NOTNULLDEFAULT nextval('config_info_id_seq'::regclass),"data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(255)COLLATE"pg_catalog"."default","content"textCOLLATE"pg_catalog"."default"NOTNULL,"md5"varchar(32)COLLATE"pg_catalog"."default","gmt_create"timestamp(6)NOTNULL,"gmt_modified"timestamp(6)NOTNULL,"src_user"textCOLLATE"pg_catalog"."default","src_ip"varchar(20)COLLATE"pg_catalog"."default","app_name"varchar(128)COLLATE"pg_catalog"."default","tenant_id"varchar(128)COLLATE"pg_catalog"."default","c_desc"varchar(256)COLLATE"pg_catalog"."default","c_use"varchar(64)COLLATE"pg_catalog"."default","effect"varchar(64)COLLATE"pg_catalog"."default","type"varchar(64)COLLATE"pg_catalog"."default","c_schema"textCOLLATE"pg_catalog"."default","encrypted_data_key"textCOLLATE"pg_catalog"."default"NOTNULL);COMMENTONCOLUMN"public"."config_info"."id"IS'id';COMMENTONCOLUMN"public"."config_info"."data_id"IS'data_id';COMMENTONCOLUMN"public"."config_info"."content"IS'content';COMMENTONCOLUMN"public"."config_info"."md5"IS'md5';COMMENTONCOLUMN"public"."config_info"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."config_info"."gmt_modified"IS'修改时间';COMMENTONCOLUMN"public"."config_info"."src_user"IS'source user';COMMENTONCOLUMN"public"."config_info"."src_ip"IS'source ip';COMMENTONCOLUMN"public"."config_info"."tenant_id"IS'租户字段';COMMENTONCOLUMN"public"."config_info"."encrypted_data_key"IS'秘钥';COMMENTONTABLE"public"."config_info"IS'config_info';-- ------------------------------ Records of config_info-- ----------------------------INSERTINTO"public"."config_info"VALUES(1,'application-dev.yml','DEFAULT_GROUP','spring:
  54. autoconfigure:
  55. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  56. mvc:
  57. pathmatch:
  58. matching-strategy: ant_path_matcher
  59. # feign 配置
  60. feign:
  61. sentinel:
  62. enabled: true
  63. okhttp:
  64. enabled: true
  65. httpclient:
  66. enabled: false
  67. client:
  68. config:
  69. default:
  70. connectTimeout: 10000
  71. readTimeout: 10000
  72. compression:
  73. request:
  74. enabled: true
  75. response:
  76. enabled: true
  77. # 暴露监控端点
  78. management:
  79. endpoints:
  80. web:
  81. exposure:
  82. include: ''*''
  83. ','09ac789741e880f0a19053afad53bf8e','2020-05-20 12:00:00','2023-07-07 12:22:59.258','nacos','192.168.159.1','','','通用配置','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring
  84. spring:
  85. security:
  86. user:
  87. name: ruoyi
  88. password: 123456
  89. boot:
  90. admin:
  91. ui:
  92. title: 若依服务状态监控
  93. ','6f122fd2bfb8d45f858e7d6529a9cd44','2020-11-20 00:00:00','2022-09-29 02:48:54','nacos','0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传
  94. file:
  95. domain: http://127.0.0.1:9300
  96. path: D:/ruoyi/uploadPath
  97. prefix: /statics
  98. # FastDFS配置
  99. fdfs:
  100. domain: http://8.129.231.12
  101. soTimeout: 3000
  102. connectTimeout: 2000
  103. trackerList: 8.129.231.12:22122
  104. # Minio配置
  105. minio:
  106. url: http://8.129.231.12:9000
  107. accessKey: minioadmin
  108. secretKey: minioadmin
  109. bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,'');INSERTINTO"public"."config_info"VALUES(3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring:
  110. redis:
  111. host: 127.0.0.1
  112. port: 16379
  113. database: 6
  114. password: 123456
  115. ','46e7fed554a8e3b1df989db8f43cab45','2020-11-20 00:00:00','2023-07-07 12:31:26.316','nacos','192.168.159.1','','','认证中心','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置
  116. spring:
  117. redis:
  118. host: 127.0.0.1
  119. port: 16379
  120. database: 6
  121. password: 123456
  122. datasource:
  123. driver-class-name: org.postgresql.Driver
  124. url: jdbc:postgresql://127.0.0.1:15433/postgres?stringtype=unspecified&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  125. username: postgres
  126. password: 123456
  127. # mybatis配置
  128. mybatis:
  129. # 搜索指定包别名
  130. typeAliasesPackage: com.ruoyi.job.domain
  131. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  132. mapperLocations: classpath:mapper/**/*.xml
  133. # swagger配置
  134. swagger:
  135. title: 定时任务接口文档
  136. license: Powered By ruoyi
  137. licenseUrl: https://ruoyi.vip
  138. ','660b961752d9802be227915a9a0bd95f','2020-11-20 00:00:00','2023-07-07 12:32:12.452','nacos','192.168.159.1','','','定时任务','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置
  139. spring:
  140. redis:
  141. host: 127.0.0.1
  142. port: 16379
  143. database: 6
  144. password: 123456
  145. datasource:
  146. driver-class-name: org.postgresql.Driver
  147. url: jdbc:postgresql://127.0.0.1:15433/postgres?stringtype=unspecified&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  148. username: postgres
  149. password: 123456
  150. # mybatis配置
  151. mybatis:
  152. # 搜索指定包别名
  153. typeAliasesPackage: com.ruoyi.gen.domain
  154. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  155. mapperLocations: classpath:mapper/**/*.xml
  156. # swagger配置
  157. swagger:
  158. title: 代码生成接口文档
  159. license: Powered By ruoyi
  160. licenseUrl: https://ruoyi.vip
  161. # 代码生成
  162. gen:
  163. # 作者
  164. author: ruoyi
  165. # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  166. packageName: com.ruoyi.system
  167. # 自动去除表前缀,默认是false
  168. autoRemovePre: false
  169. # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
  170. tablePrefix: sys_
  171. ','9f25e70735722cba18ed13252a844226','2020-11-20 00:00:00','2023-07-07 12:35:33.763','nacos','192.168.159.1','','','代码生成','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:
  172. redis:
  173. host: 127.0.0.1
  174. port: 16379
  175. database: 6
  176. password: 123456
  177. cloud:
  178. gateway:
  179. discovery:
  180. locator:
  181. lowerCaseServiceId: true
  182. enabled: true
  183. routes:
  184. # 认证中心
  185. - id: ruoyi-auth
  186. uri: lb://ruoyi-auth
  187. predicates:
  188. - Path=/auth/**
  189. filters:
  190. # 验证码处理
  191. - CacheRequestFilter
  192. - ValidateCodeFilter
  193. - StripPrefix=1
  194. # 代码生成
  195. - id: ruoyi-gen
  196. uri: lb://ruoyi-gen
  197. predicates:
  198. - Path=/code/**
  199. filters:
  200. - StripPrefix=1
  201. # 定时任务
  202. - id: ruoyi-job
  203. uri: lb://ruoyi-job
  204. predicates:
  205. - Path=/schedule/**
  206. filters:
  207. - StripPrefix=1
  208. # 系统模块
  209. - id: ruoyi-system
  210. uri: lb://ruoyi-system
  211. predicates:
  212. - Path=/system/**
  213. filters:
  214. - StripPrefix=1
  215. # 文件服务
  216. - id: ruoyi-file
  217. uri: lb://ruoyi-file
  218. predicates:
  219. - Path=/file/**
  220. filters:
  221. - StripPrefix=1
  222. # 安全配置
  223. security:
  224. # 验证码
  225. captcha:
  226. enabled: true
  227. type: math
  228. # 防止XSS攻击
  229. xss:
  230. enabled: true
  231. excludeUrls:
  232. - /system/notice
  233. # 不校验白名单
  234. ignore:
  235. whites:
  236. - /auth/logout
  237. - /auth/login
  238. - /auth/register
  239. - /*/v2/api-docs
  240. - /csrf
  241. ','b664a860ff9867716baa3eb77e245f21','2020-05-14 14:17:55','2023-07-07 12:34:01.656','nacos','192.168.159.1','','','网关模块','null','null','yaml','','');INSERTINTO"public"."config_info"VALUES(9,'sentinel-ruoyi-gateway','DEFAULT_GROUP','[
  242. {
  243. "resource": "ruoyi-auth",
  244. "count": 500,
  245. "grade": 1,
  246. "limitApp": "default",
  247. "strategy": 0,
  248. "controlBehavior": 0
  249. },
  250. {
  251. "resource": "ruoyi-system",
  252. "count": 1000,
  253. "grade": 1,
  254. "limitApp": "default",
  255. "strategy": 0,
  256. "controlBehavior": 0
  257. },
  258. {
  259. "resource": "ruoyi-gen",
  260. "count": 200,
  261. "grade": 1,
  262. "limitApp": "default",
  263. "strategy": 0,
  264. "controlBehavior": 0
  265. },
  266. {
  267. "resource": "ruoyi-job",
  268. "count": 300,
  269. "grade": 1,
  270. "limitApp": "default",
  271. "strategy": 0,
  272. "controlBehavior": 0
  273. }
  274. ]','411936d945573749e5956f2df0b04989','2020-11-20 00:00:00','2023-07-07 12:31:01.346','nacos','192.168.159.1','','','限流策略','null','null','json','','');INSERTINTO"public"."config_info"VALUES(5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置
  275. spring:
  276. redis:
  277. host: 127.0.0.1
  278. port: 16379
  279. database: 6
  280. password: 123456
  281. datasource:
  282. druid:
  283. stat-view-servlet:
  284. enabled: true
  285. loginUsername: admin
  286. loginPassword: 123456
  287. dynamic:
  288. druid:
  289. initial-size: 5
  290. min-idle: 5
  291. maxActive: 20
  292. maxWait: 60000
  293. timeBetweenEvictionRunsMillis: 60000
  294. minEvictableIdleTimeMillis: 300000
  295. validationQuery: SELECT 1
  296. testWhileIdle: true
  297. testOnBorrow: false
  298. testOnReturn: false
  299. poolPreparedStatements: true
  300. maxPoolPreparedStatementPerConnectionSize: 20
  301. filters: stat,slf4j
  302. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  303. datasource:
  304. # 主库数据源
  305. master:
  306. driver-class-name: org.postgresql.Driver
  307. url: jdbc:postgresql://127.0.0.1:15433/postgres?stringtype=unspecified&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  308. username: postgres
  309. password: 123456
  310. # 从库数据源
  311. # slave:
  312. # username:
  313. # password:
  314. # url:
  315. # driver-class-name:
  316. # mybatis配置
  317. mybatis:
  318. # 搜索指定包别名
  319. typeAliasesPackage: com.ruoyi.system
  320. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  321. mapperLocations: classpath:mapper/**/*.xml
  322. configuration:
  323. map-underscore-to-camel-case: true
  324. cache-enabled: false
  325. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  326. logging:
  327. level:
  328. com.ruoyi.system.mapper: debug
  329. # swagger配置
  330. swagger:
  331. title: 系统模块接口文档
  332. license: Powered By ruoyi
  333. licenseUrl: https://ruoyi.vip','86213807e390739d81a7eadfadf68cea','2020-11-20 00:00:00','2023-07-07 12:33:06.76','nacos','192.168.159.1','','','系统模块','null','null','yaml','','');-- ------------------------------ Table structure for config_info_aggr-- ----------------------------DROPTABLEIFEXISTS"public"."config_info_aggr";CREATETABLE"public"."config_info_aggr"("id" int8 NOTNULLDEFAULT nextval('config_info_aggr_id_seq'::regclass),"data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"datum_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"content"textCOLLATE"pg_catalog"."default"NOTNULL,"gmt_modified"timestamp(6)NOTNULL,"app_name"varchar(128)COLLATE"pg_catalog"."default","tenant_id"varchar(128)COLLATE"pg_catalog"."default");COMMENTONCOLUMN"public"."config_info_aggr"."id"IS'id';COMMENTONCOLUMN"public"."config_info_aggr"."data_id"IS'data_id';COMMENTONCOLUMN"public"."config_info_aggr"."group_id"IS'group_id';COMMENTONCOLUMN"public"."config_info_aggr"."datum_id"IS'datum_id';COMMENTONCOLUMN"public"."config_info_aggr"."content"IS'内容';COMMENTONCOLUMN"public"."config_info_aggr"."gmt_modified"IS'修改时间';COMMENTONCOLUMN"public"."config_info_aggr"."tenant_id"IS'租户字段';COMMENTONTABLE"public"."config_info_aggr"IS'增加租户字段';-- ------------------------------ Records of config_info_aggr-- ------------------------------ ------------------------------ Table structure for config_info_beta-- ----------------------------DROPTABLEIFEXISTS"public"."config_info_beta";CREATETABLE"public"."config_info_beta"("id" int8 NOTNULLDEFAULT nextval('config_info_beta_id_seq'::regclass),"data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"app_name"varchar(128)COLLATE"pg_catalog"."default","content"textCOLLATE"pg_catalog"."default"NOTNULL,"beta_ips"varchar(1024)COLLATE"pg_catalog"."default","md5"varchar(32)COLLATE"pg_catalog"."default","gmt_create"timestamp(6)NOTNULL,"gmt_modified"timestamp(6)NOTNULL,"src_user"textCOLLATE"pg_catalog"."default","src_ip"varchar(20)COLLATE"pg_catalog"."default","tenant_id"varchar(128)COLLATE"pg_catalog"."default","encrypted_data_key"textCOLLATE"pg_catalog"."default"NOTNULL);COMMENTONCOLUMN"public"."config_info_beta"."id"IS'id';COMMENTONCOLUMN"public"."config_info_beta"."data_id"IS'data_id';COMMENTONCOLUMN"public"."config_info_beta"."group_id"IS'group_id';COMMENTONCOLUMN"public"."config_info_beta"."app_name"IS'app_name';COMMENTONCOLUMN"public"."config_info_beta"."content"IS'content';COMMENTONCOLUMN"public"."config_info_beta"."beta_ips"IS'betaIps';COMMENTONCOLUMN"public"."config_info_beta"."md5"IS'md5';COMMENTONCOLUMN"public"."config_info_beta"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."config_info_beta"."gmt_modified"IS'修改时间';COMMENTONCOLUMN"public"."config_info_beta"."src_user"IS'source user';COMMENTONCOLUMN"public"."config_info_beta"."src_ip"IS'source ip';COMMENTONCOLUMN"public"."config_info_beta"."tenant_id"IS'租户字段';COMMENTONCOLUMN"public"."config_info_beta"."encrypted_data_key"IS'秘钥';COMMENTONTABLE"public"."config_info_beta"IS'config_info_beta';-- ------------------------------ Records of config_info_beta-- ------------------------------ ------------------------------ Table structure for config_info_tag-- ----------------------------DROPTABLEIFEXISTS"public"."config_info_tag";CREATETABLE"public"."config_info_tag"("id" int8 NOTNULLDEFAULT nextval('config_info_tag_id_seq'::regclass),"data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"tenant_id"varchar(128)COLLATE"pg_catalog"."default","tag_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"app_name"varchar(128)COLLATE"pg_catalog"."default","content"textCOLLATE"pg_catalog"."default"NOTNULL,"md5"varchar(32)COLLATE"pg_catalog"."default","gmt_create"timestamp(6)NOTNULL,"gmt_modified"timestamp(6)NOTNULL,"src_user"textCOLLATE"pg_catalog"."default","src_ip"varchar(20)COLLATE"pg_catalog"."default");COMMENTONCOLUMN"public"."config_info_tag"."id"IS'id';COMMENTONCOLUMN"public"."config_info_tag"."data_id"IS'data_id';COMMENTONCOLUMN"public"."config_info_tag"."group_id"IS'group_id';COMMENTONCOLUMN"public"."config_info_tag"."tenant_id"IS'tenant_id';COMMENTONCOLUMN"public"."config_info_tag"."tag_id"IS'tag_id';COMMENTONCOLUMN"public"."config_info_tag"."app_name"IS'app_name';COMMENTONCOLUMN"public"."config_info_tag"."content"IS'content';COMMENTONCOLUMN"public"."config_info_tag"."md5"IS'md5';COMMENTONCOLUMN"public"."config_info_tag"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."config_info_tag"."gmt_modified"IS'修改时间';COMMENTONCOLUMN"public"."config_info_tag"."src_user"IS'source user';COMMENTONCOLUMN"public"."config_info_tag"."src_ip"IS'source ip';COMMENTONTABLE"public"."config_info_tag"IS'config_info_tag';-- ------------------------------ Records of config_info_tag-- ------------------------------ ------------------------------ Table structure for config_tags_relation-- ----------------------------DROPTABLEIFEXISTS"public"."config_tags_relation";CREATETABLE"public"."config_tags_relation"("id" int8 NOTNULLDEFAULT nextval('config_tags_relation_id_seq'::regclass),"tag_name"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"tag_type"varchar(64)COLLATE"pg_catalog"."default","data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"tenant_id"varchar(128)COLLATE"pg_catalog"."default","nid" int8 NOTNULLDEFAULT nextval('config_tags_relation_nid_seq'::regclass));COMMENTONCOLUMN"public"."config_tags_relation"."id"IS'id';COMMENTONCOLUMN"public"."config_tags_relation"."tag_name"IS'tag_name';COMMENTONCOLUMN"public"."config_tags_relation"."tag_type"IS'tag_type';COMMENTONCOLUMN"public"."config_tags_relation"."data_id"IS'data_id';COMMENTONCOLUMN"public"."config_tags_relation"."group_id"IS'group_id';COMMENTONCOLUMN"public"."config_tags_relation"."tenant_id"IS'tenant_id';COMMENTONTABLE"public"."config_tags_relation"IS'config_tag_relation';-- ------------------------------ Records of config_tags_relation-- ------------------------------ ------------------------------ Table structure for group_capacity-- ----------------------------DROPTABLEIFEXISTS"public"."group_capacity";CREATETABLE"public"."group_capacity"("id" int8 NOTNULLDEFAULT nextval('group_capacity_id_seq'::regclass),"group_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"quota" int4 NOTNULL,"usage" int4 NOTNULL,"max_size" int4 NOTNULL,"max_aggr_count" int4 NOTNULL,"max_aggr_size" int4 NOTNULL,"max_history_count" int4 NOTNULL,"gmt_create"timestamp(6)NOTNULL,"gmt_modified"timestamp(6)NOTNULL);COMMENTONCOLUMN"public"."group_capacity"."id"IS'主键ID';COMMENTONCOLUMN"public"."group_capacity"."group_id"IS'Group ID,空字符表示整个集群';COMMENTONCOLUMN"public"."group_capacity"."quota"IS'配额,0表示使用默认值';COMMENTONCOLUMN"public"."group_capacity"."usage"IS'使用量';COMMENTONCOLUMN"public"."group_capacity"."max_size"IS'单个配置大小上限,单位为字节,0表示使用默认值';COMMENTONCOLUMN"public"."group_capacity"."max_aggr_count"IS'聚合子配置最大个数,,0表示使用默认值';COMMENTONCOLUMN"public"."group_capacity"."max_aggr_size"IS'单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值';COMMENTONCOLUMN"public"."group_capacity"."max_history_count"IS'最大变更历史数量';COMMENTONCOLUMN"public"."group_capacity"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."group_capacity"."gmt_modified"IS'修改时间';COMMENTONTABLE"public"."group_capacity"IS'集群、各Group容量信息表';-- ------------------------------ Records of group_capacity-- ------------------------------ ------------------------------ Table structure for his_config_info-- ----------------------------DROPTABLEIFEXISTS"public"."his_config_info";CREATETABLE"public"."his_config_info"("id" int8 NOTNULL,"nid" int8 NOTNULLDEFAULT nextval('his_config_info_nid_seq'::regclass),"data_id"varchar(255)COLLATE"pg_catalog"."default"NOTNULL,"group_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"app_name"varchar(128)COLLATE"pg_catalog"."default","content"textCOLLATE"pg_catalog"."default"NOTNULL,"md5"varchar(32)COLLATE"pg_catalog"."default","gmt_create"timestamp(6)NOTNULLDEFAULT'2010-05-05 00:00:00'::timestamp without time zone,"gmt_modified"timestamp(6)NOTNULL,"src_user"textCOLLATE"pg_catalog"."default","src_ip"varchar(20)COLLATE"pg_catalog"."default","op_type"char(10)COLLATE"pg_catalog"."default","tenant_id"varchar(128)COLLATE"pg_catalog"."default","encrypted_data_key"textCOLLATE"pg_catalog"."default"NOTNULL);COMMENTONCOLUMN"public"."his_config_info"."app_name"IS'app_name';COMMENTONCOLUMN"public"."his_config_info"."tenant_id"IS'租户字段';COMMENTONCOLUMN"public"."his_config_info"."encrypted_data_key"IS'秘钥';COMMENTONTABLE"public"."his_config_info"IS'多租户改造';-- ------------------------------ Records of his_config_info-- ------------------------------ ------------------------------ Table structure for permissions-- ----------------------------DROPTABLEIFEXISTS"public"."permissions";CREATETABLE"public"."permissions"("role"varchar(50)COLLATE"pg_catalog"."default"NOTNULL,"resource"varchar(512)COLLATE"pg_catalog"."default"NOTNULL,"action"varchar(8)COLLATE"pg_catalog"."default"NOTNULL);-- ------------------------------ Records of permissions-- ------------------------------ ------------------------------ Table structure for roles-- ----------------------------DROPTABLEIFEXISTS"public"."roles";CREATETABLE"public"."roles"("username"varchar(50)COLLATE"pg_catalog"."default"NOTNULL,"role"varchar(50)COLLATE"pg_catalog"."default"NOTNULL);-- ------------------------------ Records of roles-- ----------------------------INSERTINTO"public"."roles"VALUES('nacos','ROLE_ADMIN');-- ------------------------------ Table structure for tenant_capacity-- ----------------------------DROPTABLEIFEXISTS"public"."tenant_capacity";CREATETABLE"public"."tenant_capacity"("id" int8 NOTNULLDEFAULT nextval('tenant_capacity_id_seq'::regclass),"tenant_id"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"quota" int4 NOTNULL,"usage" int4 NOTNULL,"max_size" int4 NOTNULL,"max_aggr_count" int4 NOTNULL,"max_aggr_size" int4 NOTNULL,"max_history_count" int4 NOTNULL,"gmt_create"timestamp(6)NOTNULL,"gmt_modified"timestamp(6)NOTNULL);COMMENTONCOLUMN"public"."tenant_capacity"."id"IS'主键ID';COMMENTONCOLUMN"public"."tenant_capacity"."tenant_id"IS'Tenant ID';COMMENTONCOLUMN"public"."tenant_capacity"."quota"IS'配额,0表示使用默认值';COMMENTONCOLUMN"public"."tenant_capacity"."usage"IS'使用量';COMMENTONCOLUMN"public"."tenant_capacity"."max_size"IS'单个配置大小上限,单位为字节,0表示使用默认值';COMMENTONCOLUMN"public"."tenant_capacity"."max_aggr_count"IS'聚合子配置最大个数';COMMENTONCOLUMN"public"."tenant_capacity"."max_aggr_size"IS'单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值';COMMENTONCOLUMN"public"."tenant_capacity"."max_history_count"IS'最大变更历史数量';COMMENTONCOLUMN"public"."tenant_capacity"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."tenant_capacity"."gmt_modified"IS'修改时间';COMMENTONTABLE"public"."tenant_capacity"IS'租户容量信息表';-- ------------------------------ Records of tenant_capacity-- ------------------------------ ------------------------------ Table structure for tenant_info-- ----------------------------DROPTABLEIFEXISTS"public"."tenant_info";CREATETABLE"public"."tenant_info"("id" int8 NOTNULLDEFAULT nextval('tenant_info_id_seq'::regclass),"kp"varchar(128)COLLATE"pg_catalog"."default"NOTNULL,"tenant_id"varchar(128)COLLATE"pg_catalog"."default","tenant_name"varchar(128)COLLATE"pg_catalog"."default","tenant_desc"varchar(256)COLLATE"pg_catalog"."default","create_source"varchar(32)COLLATE"pg_catalog"."default","gmt_create" int8 NOTNULL,"gmt_modified" int8 NOTNULL);COMMENTONCOLUMN"public"."tenant_info"."id"IS'id';COMMENTONCOLUMN"public"."tenant_info"."kp"IS'kp';COMMENTONCOLUMN"public"."tenant_info"."tenant_id"IS'tenant_id';COMMENTONCOLUMN"public"."tenant_info"."tenant_name"IS'tenant_name';COMMENTONCOLUMN"public"."tenant_info"."tenant_desc"IS'tenant_desc';COMMENTONCOLUMN"public"."tenant_info"."create_source"IS'create_source';COMMENTONCOLUMN"public"."tenant_info"."gmt_create"IS'创建时间';COMMENTONCOLUMN"public"."tenant_info"."gmt_modified"IS'修改时间';COMMENTONTABLE"public"."tenant_info"IS'tenant_info';-- ------------------------------ Records of tenant_info-- ------------------------------ ------------------------------ Table structure for users-- ----------------------------DROPTABLEIFEXISTS"public"."users";CREATETABLE"public"."users"("username"varchar(50)COLLATE"pg_catalog"."default"NOTNULL,"password"varchar(500)COLLATE"pg_catalog"."default"NOTNULL,"enabled"boolNOTNULL);-- ------------------------------ Records of users-- ----------------------------INSERTINTO"public"."users"VALUES('nacos','$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrxfvUu','t');-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_info_aggr_id_seq"
  334. OWNED BY"public"."config_info_aggr"."id";SELECT setval('"public"."config_info_aggr_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_info_beta_id_seq"
  335. OWNED BY"public"."config_info_beta"."id";SELECT setval('"public"."config_info_beta_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_info_id_seq"
  336. OWNED BY"public"."config_info"."id";SELECT setval('"public"."config_info_id_seq"',8,true);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_info_tag_id_seq"
  337. OWNED BY"public"."config_info_tag"."id";SELECT setval('"public"."config_info_tag_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_tags_relation_id_seq"
  338. OWNED BY"public"."config_tags_relation"."id";SELECT setval('"public"."config_tags_relation_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."config_tags_relation_nid_seq"
  339. OWNED BY"public"."config_tags_relation"."nid";SELECT setval('"public"."config_tags_relation_nid_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."group_capacity_id_seq"
  340. OWNED BY"public"."group_capacity"."id";SELECT setval('"public"."group_capacity_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."his_config_info_nid_seq"
  341. OWNED BY"public"."his_config_info"."nid";SELECT setval('"public"."his_config_info_nid_seq"',9,true);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."tenant_capacity_id_seq"
  342. OWNED BY"public"."tenant_capacity"."id";SELECT setval('"public"."tenant_capacity_id_seq"',2,false);-- ------------------------------ Alter sequences owned by-- ----------------------------ALTER SEQUENCE "public"."tenant_info_id_seq"
  343. OWNED BY"public"."tenant_info"."id";SELECT setval('"public"."tenant_info_id_seq"',2,false);-- ------------------------------ Indexes structure for table config_info-- ----------------------------CREATEUNIQUEINDEX"uk_configinfo_datagrouptenant"ON"public"."config_info"USINGbtree("data_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"group_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table config_info-- ----------------------------ALTERTABLE"public"."config_info"ADDCONSTRAINT"config_info_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table config_info_aggr-- ----------------------------CREATEUNIQUEINDEX"uk_configinfoaggr_datagrouptenantdatum"ON"public"."config_info_aggr"USINGbtree("data_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"group_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"datum_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table config_info_aggr-- ----------------------------ALTERTABLE"public"."config_info_aggr"ADDCONSTRAINT"config_info_aggr_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table config_info_beta-- ----------------------------CREATEUNIQUEINDEX"uk_configinfobeta_datagrouptenant"ON"public"."config_info_beta"USINGbtree("data_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"group_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table config_info_beta-- ----------------------------ALTERTABLE"public"."config_info_beta"ADDCONSTRAINT"config_info_beta_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table config_info_tag-- ----------------------------CREATEUNIQUEINDEX"uk_configinfotag_datagrouptenanttag"ON"public"."config_info_tag"USINGbtree("data_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"group_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tag_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table config_info_tag-- ----------------------------ALTERTABLE"public"."config_info_tag"ADDCONSTRAINT"config_info_tag_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table config_tags_relation-- ----------------------------CREATEINDEX"idx_tenant_id"ON"public"."config_tags_relation"USINGbtree("tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);CREATEUNIQUEINDEX"uk_configtagrelation_configidtag"ON"public"."config_tags_relation"USINGbtree("id""pg_catalog"."int8_ops"ASC NULLS LAST,"tag_name"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tag_type"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table config_tags_relation-- ----------------------------ALTERTABLE"public"."config_tags_relation"ADDCONSTRAINT"config_tags_relation_pkey"PRIMARYKEY("nid");-- ------------------------------ Indexes structure for table group_capacity-- ----------------------------CREATEUNIQUEINDEX"uk_group_id"ON"public"."group_capacity"USINGbtree("group_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table group_capacity-- ----------------------------ALTERTABLE"public"."group_capacity"ADDCONSTRAINT"group_capacity_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table his_config_info-- ----------------------------CREATEINDEX"idx_did"ON"public"."his_config_info"USINGbtree("data_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);CREATEINDEX"idx_gmt_create"ON"public"."his_config_info"USINGbtree("gmt_create""pg_catalog"."timestamp_ops"ASC NULLS LAST);CREATEINDEX"idx_gmt_modified"ON"public"."his_config_info"USINGbtree("gmt_modified""pg_catalog"."timestamp_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table his_config_info-- ----------------------------ALTERTABLE"public"."his_config_info"ADDCONSTRAINT"his_config_info_pkey"PRIMARYKEY("nid");-- ------------------------------ Indexes structure for table permissions-- ----------------------------CREATEUNIQUEINDEX"uk_role_permission"ON"public"."permissions"USINGbtree("role"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"resource"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"action"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Indexes structure for table roles-- ----------------------------CREATEUNIQUEINDEX"uk_username_role"ON"public"."roles"USINGbtree("username"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"role"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Indexes structure for table tenant_capacity-- ----------------------------CREATEUNIQUEINDEX"uk_tenant_id"ON"public"."tenant_capacity"USINGbtree("tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);-- ------------------------------ Primary Key structure for table tenant_capacity-- ----------------------------ALTERTABLE"public"."tenant_capacity"ADDCONSTRAINT"tenant_capacity_pkey"PRIMARYKEY("id");-- ------------------------------ Indexes structure for table tenant_info-- ----------------------------CREATEUNIQUEINDEX"uk_tenant_info_kptenantid"ON"public"."tenant_info"USINGbtree("kp"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST,"tenant_id"COLLATE"pg_catalog"."default""pg_catalog"."text_ops"ASC NULLS LAST);

创作不易,大家帮忙关注一下我的公众号,感谢。
在这里插入图片描述

标签: docker 容器 运维

本文转载自: https://blog.csdn.net/qq_41060647/article/details/131582450
版权归原作者 逗比可以笑。 所有, 如有侵权,请联系我们删除。

“docker环境部署postgres版本nacos”的评论:

还没有评论