build 部署配置优化

This commit is contained in:
xxm1995
2023-07-10 15:35:41 +08:00
parent 72face66e9
commit 1853bf9086
3 changed files with 8 additions and 8 deletions

View File

@@ -4,9 +4,9 @@ services:
image: dax-start:latest
restart: always
ports:
- "8080:8080"
- "9898:9898"
volumes:
# 宿主机目录:容器目录 日志映射
- /data/logs/dax-start:/logs
# 读取外部化配置文件
- ./:/
# 读取外部化配置文件(根据实际服务器环境做修改), 宿主机目录:容器目录
- /data/logs/dax-start:/logs # 日志
- /root/dax-pay/application-dev.yml:/application-dev.yml # 配置
- /root/dax-pay/logback-spring.xml:/logback-spring.xml # 日志框架