jeecg-boot项目部署流程
1、创建镜像:docker build -t jeecg-boot-system /project/yihuo-boot/
2、创建容器,使用8080端口:docker run --name jeecg-boot-system -p 8080:8080 -d jeecg-boot-system
前端部署
上传打包文件
上传Dockerfile
构建镜像:docker build -t nginx:jeecgboot /project/yihuo-vue/
启动镜像(nginx非挂载):docker run --name jeecg-boot-nginx -p 80:80 -d nginx:jeecgboot
启动镜像(nginx挂载文件):docker run --name jeecg-boot-nginx -p 80:80 -p 443:443 -v /opt/docker/nginx/conf.d/nginx.conf:/etc/nginx/nginx.conf -v /opt/docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf -v /opt/docker/nginx/cert:/etc/ssl/cert -d nginx:jeecgboot
docker命令
停止容器:docker stop 容器id
开始容器:docker start 容器id
删除容器:docker rm 容器id
查看正在运行的容器:docker ps
查看全部容器:docker ps -a
删除镜像:docker rmi 镜像id
查看镜像:docker images