You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
591 B
14 lines
591 B
2 years ago
|
#编排容器
|
||
|
docker-compose up -d --build
|
||
|
#打包镜像
|
||
|
docker save -o military2.0.tar military-system:2.0 military-earth:2.0 military-web:2.0
|
||
|
#导入镜像
|
||
|
docker load -i military.tar
|
||
|
|
||
|
|
||
|
#运行后台镜像
|
||
|
docker run -d --name military-system -p 8049:8049 -v \你自己的路径\application-prod.yml:/military/config/application-prod.yml -v \你自己的路径\opt\upFiles:/opt/upFiles military-system:2.0
|
||
|
#运行前端服务镜像
|
||
|
docker run -d --name military-web -p 3001:3001 military-web:2.0
|
||
|
#运行地图服务镜像
|
||
|
docker run -d --name military-earth -p 3000:3000 military-earth:2.0
|