From f6ed13a6a968c0f5e362721c67c9004052f19598 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 28 Oct 2024 23:54:48 +0530 Subject: [PATCH] Add explicit instructions for older docker-compose files. --- docs/docs/content/upgrade.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/docs/content/upgrade.md b/docs/docs/content/upgrade.md index 244500f72..21cf771f4 100644 --- a/docs/docs/content/upgrade.md +++ b/docs/docs/content/upgrade.md @@ -14,11 +14,22 @@ If you installed listmonk as a service, you will need to stop it before overwrit If it's not running as a service, `pkill -9 listmonk` will stop the listmonk process. ## Docker -> Instructions for versions above v4.x.x using the latest [docker-compose.yml](https://github.com/knadh/listmonk/blob/master/docker-compose.yml) file. +**Important:** The following instructions are for the new [docker-compose.yml](https://github.com/knadh/listmonk/blob/master/docker-compose.yml) file for v4.x.x onwards. + +```shell +docker compose down app +docker compose pull +docker compose up app -d +``` + +If you are using an older docker-compose.yml file (versions older than v4.x.x), you have to run the `--upgrade` step manually. + +```shell +docker-compose down +docker-compose pull && docker-compose run --rm app ./listmonk --upgrade +docker-compose up -d app db +``` -- `docker compose down app` and stop the app container. -- `docker compose pull` to pull the latest version from DockerHub. -- `docker compose up app -d` to automatically run the upgrade and start listmonk. ## Railway - Head to your dashboard, and select your Listmonk project.