diff --git a/docs/deployment/docker.mdx b/docs/deployment/docker.mdx index 5b77e205c..e63437182 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 +``` +