From ed663c54908a6878bae9eb2626c21981d1bd0dcf Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Fri, 3 Jun 2022 12:24:07 +0200
Subject: [PATCH] doc(user): upgrade your node with minimal interruption

---
 docs/user/mirror.md | 8 ++++++++
 docs/user/smith.md  | 7 +++++++
 2 files changed, 15 insertions(+)

diff --git a/docs/user/mirror.md b/docs/user/mirror.md
index 5c82ea6cb..0e3ecccd6 100644
--- a/docs/user/mirror.md
+++ b/docs/user/mirror.md
@@ -58,3 +58,11 @@ and replace `YOUR_DOMAIN` by your domain each time.
 Your node is now online as a mirror node. It's fully capable for wallet use.
 
 To go further, read [How to become a (black)smith](./smith.md)
+
+## Upgrade your node with minimal interruption
+
+1. Modify docker image tag on your compose file
+2. Run `docker compose pull`, this will pull the new image.
+3. Run `docker compose up -d --remove-orphans`, this will recreate the container
+4. Verify that your node restarted well `docker compose logs duniter-rpc`
+5. Remove the old image `docker images rmi duniter/duniter-v2s:OLD_TAG`
diff --git a/docs/user/smith.md b/docs/user/smith.md
index 7da79154c..d29f3d29d 100644
--- a/docs/user/smith.md
+++ b/docs/user/smith.md
@@ -85,3 +85,10 @@ When you have at least 3 certifications, your'in !
   - In the UI : developer > extrinsics > YOUR_SMITH_ACCOUNT > authorityMembers > goOnline()
 
 If you're not able to monitor, reboot, act on your node, goOffline() to avoid penality to the blockchain and to you.
+## Upgrade your node with minimal interruption
+
+1. Modify docker image tag on your compose file
+2. Run `docker compose pull`, this will pull the new image.
+3. Run `docker compose up -d --remove-orphans`, this will recreate the container
+4. Verify that your node restarted well `docker compose logs duniter-validator`
+5. Remove the old image `docker images rmi duniter/duniter-v2s:OLD_TAG`
-- 
GitLab