mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 03:25:10 +00:00
a6eebb940f
* feat: improve code * feat: update docs * feat: update docs * Update index.md * Update features.md * Update when.md * Update contributing.md * Update translations.md * feat: clean up * Add files via upload * Update the-first-app.md * Update plugins.md * Update a-b-c.md * Update blocks.md * feat: update docs * Add files via upload * Update charts.md * feat: update navs * Update index.md * Update index.md * Update features.md * Update index.md * Update docker-compose.md * Update create-nocobase-app.md * Update git-clone.md * Update contributing.md * Update translations.md * Update plugins.md * Update the-first-app.md * Add files via upload * Update charts.md * Update charts.md * Update a-b-c.md * Update collections.md * Update menus.md * Update menus.md Co-authored-by: Zhou <zhou.working@gmail.com>
1.3 KiB
1.3 KiB
Upgrading for Docker compose
The Docker installation described in this document is based on the docker-compose.yml
configuration file, which is also available in the NocoBase GitHub repository.
1. Switch to the directory where you installed it before
You can also switch to the directory where docker-compose.yml
is located, depending on the situation.
# SQLite
cd nocobase/docker/app-sqlite
# MySQL
cd nocobase/docker/app-mysql
# PostgreSQL
cd nocobase/docker/app-postgres
2. Update the image version number
docker-compose.yml
file, replace the image of the app container with the latest version.
services:
app:
image: nocobase/nocobase:0.8.0-alpha.1
3. Delete old images (not required)
If you are using the latest image, you need to stop and delete the corresponding container first.
# find container ID
docker ps
# stop container
docker stop <YOUR_CONTAINER_ID>
# delete container
docker rm <YOUR_CONTAINER_ID>
Delete the old image
# find image
docker images
# delete image
docker rmi <YOUR_CONTAINER_ID>
4. Restart the container
docker-compose up -d app
# 查看 app 进程的情况
docker-compose logs app