提交 5184cf01 authored 作者: 000516's avatar 000516 提交者: Coding

修改测试、正式环境配置文件

Merge Request: 修改测试、正式环境配置文件 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-gateway/git/merge/204?initial=true
...@@ -2,21 +2,27 @@ ...@@ -2,21 +2,27 @@
2、更新common代码、打包、更新依赖 2、更新common代码、打包、更新依赖
3、刷新依赖并打jar包,然后build镜像 3、刷新依赖并打jar包,然后build镜像
docker build -t promotion-gateway:latest . mvn package -DskipTests
docker stop promotion-gateway-020 && docker rm promotion-gateway-020
docker rmi promotion-gateway-020
docker build -t promotion-gateway:0.2.0 .
Live启动: Live启动:
docker run -d -p 8010:8010 --name promotion-gateway \ docker run -d -p 8010:8010 --name promotion-gateway \
-v /var/logs/promotion-gateway/:/var/logs/promotion-gateway/ \ -v /var/logs/promotion-gateway/:/var/logs/promotion-gateway/ \
--restart=always \ --restart=always \
--network host \ --network host \
promotion-gateway:latest promotion-gateway:0.2.0
QA启动: QA启动:
docker run -d -p 8010:8010 --name promotion-gateway \ docker run -d -p 8010:8010 --name promotion-gateway-020 \
-v /var/logs/promotion-gateway/:/var/logs/promotion-gateway/ \ -v /var/logs/promotion-gateway/:/var/logs/promotion-gateway/ \
--restart=always \ --restart=always \
--network host \ --network host \
promotion-gateway:latest \ promotion-gateway:0.2.0 \
--spring.profiles.active=qa --spring.profiles.active=qa
...@@ -5,8 +5,8 @@ spring: ...@@ -5,8 +5,8 @@ spring:
username: NvqGbJXH username: NvqGbJXH
password: D9Y@FR,84B*$MD^A36&m password: D9Y@FR,84B*$MD^A36&m
redis: redis:
port: 6379 port: 23385
host: 192.168.100.40 host: 1.202.69.170
database: 0 database: 0
password: QjL6H5nH password: QjL6H5nH
......
...@@ -5,10 +5,10 @@ spring: ...@@ -5,10 +5,10 @@ spring:
username: LnNDBM username: LnNDBM
password: fd0%bhD4@oO(% password: fd0%bhD4@oO(%
redis: redis:
port: 7548 port: 23385
host: 192.168.0.11 host: 1.202.69.170
database: 1 database: 1
password: u)R3jrHk(qwt~mv$Tg=U password: QjL6H5nH
main: main:
web-application-type: reactive web-application-type: reactive
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论