From feb613cb6d3b5f9b32f6cde2a837a82ff8d5f654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Ayd=C4=B1n?= Date: Fri, 1 Sep 2023 17:53:21 +0200 Subject: [PATCH] docs: add upgrade guide for docker compose installation (#1262) --- packages/docs/pages/guide/installation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/docs/pages/guide/installation.md b/packages/docs/pages/guide/installation.md index cab99a00..a61d5e05 100644 --- a/packages/docs/pages/guide/installation.md +++ b/packages/docs/pages/guide/installation.md @@ -29,6 +29,20 @@ docker compose up ✌️ That's it; you have Automatisch running. Let's check it out by browsing [http://localhost:3000](https://localhost:3000) +### Upgrade with Docker Compose + +If you want to upgrade the Automatisch version with docker compose, first you need to pull the main branch of Automatisch repository. + +```bash +git pull origin main +``` + +Then you can run the following command to rebuild the containers with the new images. + +```bash +docker compose up --force-recreate --build +``` + ## Docker Automatisch comes with two services which are `main` and `worker`. They both use the same image and need to have the same environment variables except for the `WORKER` environment variable which is set to `true` for the worker service.