mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-19 03:26:32 +08:00
commit:集成Minio
This commit is contained in:
Binary file not shown.
@@ -15,6 +15,13 @@ application:
|
||||
# 通常在调试和测试阶段设置为false,以便及时发现问题。
|
||||
ignoreRpcError: false
|
||||
|
||||
minio:
|
||||
enabled: true
|
||||
endpoint: http://localhost:19000
|
||||
accessKey: admin
|
||||
secretKey: admin123456
|
||||
bucketName: course-class
|
||||
|
||||
sequence:
|
||||
# 是否使用基于美团Leaf的分布式Id生成器。
|
||||
advanceIdGenerator: true
|
||||
@@ -45,7 +52,7 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-multi?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-single?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 123456
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
@@ -25,16 +25,6 @@ spring:
|
||||
enabled: false
|
||||
lower-case-service-id: true
|
||||
routes:
|
||||
- id: upms-login
|
||||
uri: lb://upms
|
||||
predicates:
|
||||
- Path=/admin/login/**
|
||||
filters:
|
||||
- StripPrefix=0
|
||||
- name: Hystrix
|
||||
args:
|
||||
name: default
|
||||
fallbackUri: forward:/fallback
|
||||
- id: course-class
|
||||
uri: lb://course-class
|
||||
predicates:
|
||||
|
||||
@@ -45,7 +45,7 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-multi?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-single?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 123456
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
@@ -46,7 +46,7 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-multi?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://localhost:3306/zzdemo-single?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 123456
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
5130
orange-demo-multi-service/zz-resource/db-scripts/zz-orange-demo.sql
Normal file
5130
orange-demo-multi-service/zz-resource/db-scripts/zz-orange-demo.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -67,6 +67,21 @@ services:
|
||||
networks:
|
||||
- zz-test
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
environment:
|
||||
# spring boot服务中的配置项需要与该值相同。
|
||||
# nginx访问页面的登录名和密码。密码不能少于8个字符。
|
||||
- MINIO_ACCESS_KEY=admin
|
||||
- MINIO_SECRET_KEY=admin123456
|
||||
volumes:
|
||||
- ./data/minio:/data
|
||||
- ./services/minio/config:/root/.minio
|
||||
ports:
|
||||
# 对主机暴露19000接口,nginx需要将请求导入该端口号。
|
||||
- "19000:9000"
|
||||
command: server /data
|
||||
|
||||
networks:
|
||||
zz-test:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user