mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 16:48:14 +00:00
42 lines
823 B
Markdown
42 lines
823 B
Markdown
# Docker 安装的升级
|
||
|
||
<Alert>
|
||
|
||
本篇文档所讲的 Docker 安装是基于 `docker-compose.yml` 配置文件,在 [NocoBase GitHub 仓库](https://github.com/nocobase/nocobase/tree/main/docker) 里也有提供。
|
||
|
||
</Alert>
|
||
|
||
## 1. 切换到之前安装时的目录
|
||
|
||
也可以根据实际情况,切换到 `docker-compose.yml` 所在的目录
|
||
|
||
```bash
|
||
# SQLite
|
||
cd nocobase/docker/app-sqlite
|
||
# MySQL
|
||
cd nocobase/docker/app-mysql
|
||
# PostgreSQL
|
||
cd nocobase/docker/app-postgres
|
||
```
|
||
|
||
## 2. 更新 image 版本号
|
||
|
||
`docker-compose.yml` 文件,app 容器的 image 替换为最新版本
|
||
|
||
```yml
|
||
services:
|
||
app:
|
||
image: nocobase/nocobase:main # main 分支
|
||
```
|
||
|
||
## 3. 重启容器
|
||
|
||
```bash
|
||
# 拉取最新镜像
|
||
docker-compose pull
|
||
# 启动
|
||
docker-compose up -d app
|
||
# 查看 app 进程的情况
|
||
docker-compose logs app
|
||
```
|