deploy: 新增 docker compose 配置
This commit is contained in:
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
application:
|
||||||
|
container_name: material-manage-service
|
||||||
|
restart: always
|
||||||
|
image: openjdk:11.0.12
|
||||||
|
volumes:
|
||||||
|
- /opt/app/material-manage-service/app.jar:/app.jar
|
||||||
|
- /opt/app/material-manage-service/logs:/logs
|
||||||
|
- /opt/files/material-manage-service:/files
|
||||||
|
- /etc/localtime:/etc/localtime
|
||||||
|
ports:
|
||||||
|
- "9882:9882"
|
||||||
|
environment:
|
||||||
|
- TZ="Asia/Shanghai"
|
||||||
|
entrypoint: java -server -Xms256m -Xmx256m -jar app.jar --spring.profiles.active=test
|
@@ -30,6 +30,8 @@ mybatis-plus:
|
|||||||
configuration:
|
configuration:
|
||||||
jdbc-type-for-null: 'null'
|
jdbc-type-for-null: 'null'
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
|
||||||
|
|
||||||
global-config:
|
global-config:
|
||||||
banner: false
|
banner: false
|
||||||
db-config:
|
db-config:
|
||||||
@@ -64,6 +66,7 @@ sa-token:
|
|||||||
token-style: random-32
|
token-style: random-32
|
||||||
server:
|
server:
|
||||||
port: 9882
|
port: 9882
|
||||||
|
|
||||||
mjkf-xinke:
|
mjkf-xinke:
|
||||||
config:
|
config:
|
||||||
common:
|
common:
|
||||||
@@ -71,9 +74,10 @@ mjkf-xinke:
|
|||||||
front-url: http://localhost:9881
|
front-url: http://localhost:9881
|
||||||
ten:
|
ten:
|
||||||
default-ten-id: -1
|
default-ten-id: -1
|
||||||
enabled: true
|
enabled: false
|
||||||
ignore-table-names: ''
|
ignore-table-names: ''
|
||||||
ten-id-column-name: TENANT_ID
|
ten-id-column-name: TENANT_ID
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
@@ -129,13 +133,8 @@ spring:
|
|||||||
max-request-size: 100MB
|
max-request-size: 100MB
|
||||||
application:
|
application:
|
||||||
name: material-manage-service
|
name: material-manage-service
|
||||||
snowy:
|
|
||||||
config:
|
proxy:
|
||||||
common:
|
solr:
|
||||||
backend-url: http://localhost:8192
|
servlet_url: /solr/* # 这里不能写ip地址,只写接口后半段即可
|
||||||
front-url: http://localhost:8181
|
target_url: http://localhost:50000 # 真实服务器接口地址
|
||||||
ten:
|
|
||||||
default-ten-id: -1
|
|
||||||
enabled: true
|
|
||||||
ignore-table-names: ''
|
|
||||||
ten-id-column-name: TENANT_ID
|
|
Reference in New Issue
Block a user