| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | url: jdbc:mysql://192.168.2.16:7006/train_exam?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&allowMultiQueries=true |
| | | url: jdbc:mysql://192.168.2.27:7006/train_exam?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&allowMultiQueries=true |
| | | username: root |
| | | password: 2farwL3yPXfbH2AP |
| | | # 从库数据源 |
| | |
| | | password: |
| | | initialSize: 5 #连接池初始化大小 |
| | | minIdle: 10 #最小空闲连接数 |
| | | maxActive: 20 #最大连接数 |
| | | maxActive: 50 #最大连接数 |
| | | # 配置获取连接等待超时的时间 |
| | | maxWait: 60000 |
| | | # 配置连接超时时间 |
| | |
| | | #redis 配置 |
| | | redis: |
| | | database: 0 |
| | | host: 127.0.0.1 |
| | | host: 192.168.2.27 |
| | | port: 6379 |
| | | password: |
| | | |
| | |
| | | level: |
| | | root: INFO |
| | | org: |
| | | com.nms.swspkmas_standalone: DEBUG |
| | | file: |
| | | name: logs/nms-kaoshi.log |
| | | com.gkhy.exam: DEBUG |
| | | |
| | | swagger: |
| | | enabled: true |
| | | |
| | | minio: |
| | | endpoint: http://192.168.2.16:9000/ #Minio服务所在地址 |
| | | endpoint: http://192.168.2.27:9000/ #Minio服务所在地址 |
| | | bucketName: trainexam #存储桶名称 |
| | | accessKey: JuHGtYXvgJdeaPHcu5AI #访问的key |
| | | secretKey: mQhUsIYnD696ZFI2sJ6eQ77tmmoe9TTUavFg9Ien #访问的秘钥 |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | version: '3.9' |
| | | services: |
| | | kele_mysql: |
| | | restart: always |
| | | image: mysql:5.6 |
| | | volumes: |
| | | - ./data/mysql:/var/lib/mysql |
| | | - ./conf/mysql/:/etc/mysql/conf.d |
| | | ports: |
| | | - "3306:3306" |
| | | environment: |
| | | - MYSQL_DATABASE=imooc |
| | | - MYSQL_ROOT_PASSWORD=root |
| | | |
| | | kele_nginx: |
| | | restart: always |
| | | image: nginx |
| | | ports: |
| | | - "8001:80" |
| | | volumes: |
| | | - ./conf/nginx/mx_nginx.conf:/etc/nginx/conf.d/mx_nginx.conf |
| | | volumes_from: |
| | | - kele_imooc |
| | | links: |
| | | - kele_imooc:web |
| | | |
| | | kele_imooc: |
| | | restart: always |
| | | build: . |
| | | ports: |
| | | - "8000:8000" |
| | | volumes: |
| | | - .:/imooc |
| | | links: |
| | | - kele_mysql:mysql |
| | | command: uwsgi -s :8000 -w imooc.wsgi -p 3 |
| | | |
| | | secretKey: mQhUsIYnD696ZFI2sJ6eQ77tmmoe9TTUavFg9Ien #访问的秘钥 |