nocobase/docs/zh-CN/welcome/getting-started/upgrading/docker-compose.md
2022-12-05 22:59:10 +08:00

42 lines
823 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
```