From 28553632d1620255466f55d905938f9af96566bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B4=20Th=C3=A0nh=20C=C3=B4ng?= Date: Thu, 23 Jan 2025 22:21:34 +0700 Subject: [PATCH] docs: Added instructions for installing new Keep from scratch in docker (#3105) Co-authored-by: Tal --- docs/deployment/docker.mdx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/deployment/docker.mdx b/docs/deployment/docker.mdx index 5b77e205ce..e634371823 100644 --- a/docs/deployment/docker.mdx +++ b/docs/deployment/docker.mdx @@ -29,3 +29,36 @@ The docker-compose.yml contains 3 services: - [keep-backend](https://console.cloud.google.com/artifacts/docker/keephq/us-central1/keep/keep-api?project=keephq) - a fastapi service that as the API server. - [keep-frontend](https://console.cloud.google.com/artifacts/docker/keephq/us-central1/keep/keep-ui?project=keephq) - a nextjs app that serves as Keep UI interface. - [keep-websocket-server](https://docs.soketi.app/getting-started/installation/docker) - Soketi (a pusher compatible websocket server) for real time alerting. + +### Reinstall Keep with the option to refresh from scratch +`Caution:` This usage context will refresh from the beginning and Keep's data and settings will be erased + +For cases where you need to test many different options or simply want to reinstall Keep from scratch using docker compose without spending a lot of time, that is, without repeating the steps of installing docker, downloading the installer.. .. run the commands according to the previous instructions. + +Follow these steps + +#### Step1: Stop, Clear container, network, volume, image. +In the directory containing the docker compose file you downloaded, say `/root/` + +``` +docker-compose down + +docker-compose down --rmi all + +docker-compose down -v + +docker system prune -a --volumes +``` + +#### Step2: Clear Config db, config file in state folder. + +``` +rm -rf state/* +`` + +#### Step 3: Run again + +``` +docker compose up -d +``` +