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:
|
||||
jdbc-type-for-null: 'null'
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
|
||||
global-config:
|
||||
banner: false
|
||||
db-config:
|
||||
@@ -64,6 +66,7 @@ sa-token:
|
||||
token-style: random-32
|
||||
server:
|
||||
port: 9882
|
||||
|
||||
mjkf-xinke:
|
||||
config:
|
||||
common:
|
||||
@@ -71,9 +74,10 @@ mjkf-xinke:
|
||||
front-url: http://localhost:9881
|
||||
ten:
|
||||
default-ten-id: -1
|
||||
enabled: true
|
||||
enabled: false
|
||||
ignore-table-names: ''
|
||||
ten-id-column-name: TENANT_ID
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
druid:
|
||||
@@ -129,13 +133,8 @@ spring:
|
||||
max-request-size: 100MB
|
||||
application:
|
||||
name: material-manage-service
|
||||
snowy:
|
||||
config:
|
||||
common:
|
||||
backend-url: http://localhost:8192
|
||||
front-url: http://localhost:8181
|
||||
ten:
|
||||
default-ten-id: -1
|
||||
enabled: true
|
||||
ignore-table-names: ''
|
||||
ten-id-column-name: TENANT_ID
|
||||
|
||||
proxy:
|
||||
solr:
|
||||
servlet_url: /solr/* # 这里不能写ip地址,只写接口后半段即可
|
||||
target_url: http://localhost:50000 # 真实服务器接口地址
|
Reference in New Issue
Block a user