{"release":{"tag":{"name":"v4.7.9","path":"/GiteeKey/ruoyi-blog/tags/v4.7.9","tree_path":"/GiteeKey/ruoyi-blog/tree/v4.7.9","message":"# docker 部署教程\r\n## 1. 创建数据库\r\n**创建数据库,并导入sql/ruoyi_blog.sql**\r\n\r\n## 2. 修改application.yml\r\n1. 修改mysql连接信息 必须\r\n2. 修改email信息 非必须 (可以不配置邮件信息)\r\n3. 修改端口号 非必须 (在docker内部,不影响,如果修改端口号,同时修改docker run命令中的端口号)\r\n4. 修改文件保存路径 非必须 (此修改的是docker内部的路径,如果修改,同时修改docker run命令中的路径)\r\n5. 其他信息可根据需要修改 非必须\r\n## 3. 加载镜像\r\n```shell\r\ndocker load \u003C ruoyi-blog-4.7.9.tar\r\n```\r\n## 4. 查看镜像\r\n```shell\r\ndocker images\r\n# ruoyi-blog v4.7.9 fdd138d72230 2 weeks ago 906MB\r\n```\r\n## 5. 启动容器\r\n```shell\r\n# -name 起一个容器名\r\n# -d 后台运行\r\n# -p 端口绑定\r\n# -v 挂载文件 本地文件路径:容器文件路径 \r\n# ruoyi-blog:v4.7.9 镜像名:版本号\r\ndocker run --name ruoyi-blog -d -p 10086:10086 \\\r\n-v /home/docker/application.yml:/application.yml \\\r\n-v /home/docker/home:/home \\\r\nruoyi-blog:v4.7.9\r\n```\r\n\r\n## 6. 查看docker日志\r\n\r\n```shell\r\ndocker logs ruoyi-blog\r\n```\r\n\r\n访问页面: http://ip:10087","commit":{"id":"26d91b5f18b64ec41998ae7c6373fe8588220de1","short_id":"26d91b5","title":"🧃 merge https://github.com/yangzongzhuan/RuoYi-fast.git master","title_markdown":"🧃 merge \u003Ca href=\"https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Fyangzongzhuan%2FRuoYi-fast.git\"\u003Ehttps://github.com/yangzongzhuan/RuoYi-fast.git\u003C/a\u003E master","description":"","description_markdown":"","message":"🧃 merge https://github.com/yangzongzhuan/RuoYi-fast.git master\n","message_markdown":"🧃 merge \u003Ca href=\"https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Fyangzongzhuan%2FRuoYi-fast.git\"\u003Ehttps://github.com/yangzongzhuan/RuoYi-fast.git\u003C/a\u003E master","detail_path":"/GiteeKey/ruoyi-blog/commit/26d91b5f18b64ec41998ae7c6373fe8588220de1","commits_path":"/GiteeKey/ruoyi-blog/commits/26d91b5f18b64ec41998ae7c6373fe8588220de1","tree_path":"/GiteeKey/ruoyi-blog/tree/26d91b5f18b64ec41998ae7c6373fe8588220de1","author":{"name":"GiteeKey","email":"1228134035@qq.com","username":"GiteeKey","user_path":"/GiteeKey","enterprise_user_path":null,"image_path":"no_portrait.png#GiteeKey-GiteeKey","is_gitee_user":true,"is_enterprise_user":null,"widget_url":""},"committer":{"name":"GiteeKey","email":"1228134035@qq.com","username":"GiteeKey","user_path":"/GiteeKey","enterprise_user_path":null,"image_path":"no_portrait.png#GiteeKey-GiteeKey","is_gitee_user":true,"is_enterprise_user":null,"widget_url":""},"authored_date":"2024-08-20T14:25:37+08:00","committed_date":"2024-08-20T14:25:37+08:00","signature":null,"build_state":null},"archive_path":"/GiteeKey/ruoyi-blog/repository/archive/v4.7.9","signature":null},"operating":{"edit":false,"download":true,"destroy":false,"enterprise_forbid_zip":false},"release":{"title":"docker 部署","path":"/GiteeKey/ruoyi-blog/releases/tag/v4.7.9","tag_path":"/GiteeKey/ruoyi-blog/tree/v4.7.9","project_id":20658204,"created_at":"2024-08-21T16:55:14+08:00","is_prerelease":false,"description":"# docker 部署教程\r\n## 1. 创建数据库\r\n**创建数据库,并导入sql/ruoyi_blog.sql**\r\n\r\n## 2. 修改application.yml\r\n1. 修改mysql连接信息 必须\r\n2. 修改email信息 非必须 (可以不配置邮件信息)\r\n3. 修改端口号 非必须 (在docker内部,不影响,如果修改端口号,同时修改docker run命令中的端口号)\r\n4. 修改文件保存路径 非必须 (此修改的是docker内部的路径,如果修改,同时修改docker run命令中的路径)\r\n5. 其他信息可根据需要修改 非必须\r\n## 3. 加载镜像\r\n```shell\r\ndocker load \u003C ruoyi-blog-4.7.9.tar\r\n```\r\n## 4. 查看镜像\r\n```shell\r\ndocker images\r\n# ruoyi-blog v4.7.9 fdd138d72230 2 weeks ago 906MB\r\n```\r\n## 5. 启动容器\r\n```shell\r\n# -name 起一个容器名\r\n# -d 后台运行\r\n# -p 端口绑定\r\n# -v 挂载文件 本地文件路径:容器文件路径 \r\n# ruoyi-blog:v4.7.9 镜像名:版本号\r\ndocker run --name ruoyi-blog -d -p 10086:10086 \\\r\n-v /home/docker/application.yml:/application.yml \\\r\n-v /home/docker/home:/home \\\r\nruoyi-blog:v4.7.9\r\n```\r\n\r\n## 6. 查看docker日志\r\n\r\n```shell\r\ndocker logs ruoyi-blog\r\n```\r\n\r\n访问页面: http://ip:10087","author":{"name":"GiteeKey","username":"GiteeKey","path":"/GiteeKey","avatar_url":"no_portrait.png#GiteeKey-GiteeKey"},"attach_files":[],"zip_download_url":"/GiteeKey/ruoyi-blog/releases/tag/v4.7.9.zip","tar_download_url":"/GiteeKey/ruoyi-blog/releases/tag/v4.7.9.tar.gz"}}}