Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 2651225

Browse files
authored
Merge pull request #133 from appwrite/fix-upgrade-docs-uninstall
Fix upgrade docs and added stop + uninstall
2 parents 75b9789 + c5540b0 commit 2651225

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

app/views/docs/installation.phtml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,28 @@
6161
<pre class="line-numbers"><code class="prism language-bash" data-prism>docker-compose up -d --remove-orphans</code></pre>
6262
</div>
6363

64-
<hr class="margin-bottom" />
65-
6664
<p>Once the Docker installation completes, go to your machine hostname or IP address on your browser to access the Appwrite console. Please notice that on non-linux native hosts the server might take a few minutes to start after installation completes.</p>
6765

66+
<h3><a href="/docs/installation#stop" id="manual">Stop</a></h3>
67+
68+
<p>You can stop your Appwrite containers by using the following command executed from the same directory as your docker-compose.yml file.</p>
69+
70+
<div class="ide margin-bottom" data-lang="bash" data-lang-label="Bash">
71+
<pre class="line-numbers"><code class="prism language-bash" data-prism>docker-compose stop</code></pre>
72+
</div>
73+
74+
<h3><a href="/docs/installation#uninstall" id="manual">Uninstall</a></h3>
75+
76+
<p>To stop and remove your Appwrite containers you can use the following command executed from the same directory as your docker-compose.yml file.</p>
77+
78+
<div class="ide margin-bottom" data-lang="bash" data-lang-label="Bash">
79+
<pre class="line-numbers"><code class="prism language-bash" data-prism>docker-compose down -v</code></pre>
80+
</div>
81+
6882
<h2><a href="/docs/installation#learnMore" id="learnMore">Learn More</a></h2>
6983

7084
<ul>
7185
<li class="margin-bottom-tiny"><a href="/docs/production" rel="noopener"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Running Appwrite in production</a></li>
7286
<li class="margin-bottom-tiny"><a href="/docs/environment-variables" rel="noopener"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Appwrite server environment variables</a></li>
7387
<li class="margin-bottom-tiny"><a href="/docs/email-delivery" rel="noopener"><i class="icon-angle-circled-right margin-start-negative-tiny margin-end-tiny"></i> Appwrite setting a custom SMTP server</a></li>
74-
</ul>
88+
</ul>

app/views/docs/upgrade.phtml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
<!-- <p>The data migration tool will allow you to easily migrate your current Appwrite data to work with the new version. </p> -->
1414

15-
<p> The first step is to install the latest version of Appwrite. Head to the directory where you first installed Appwrite. This is where you will find the <b>appwrite</b> directory and the <b>appwrite/docker-compose.yml</b> file. Make sure you are at the same level as the <b>appwrite</b> directory and then execute the following command</p>
15+
<p> The first step is to install the latest version of Appwrite. Head to the directory where you first installed Appwrite. This is the parent directory, where you will find the <b>appwrite</b> directory that contains the <b>docker-compose.yml</b> and <b>.env</b> files.</p>
16+
1617
<div class="ide margin-bottom" data-lang="bash" data-lang-label="Bash">
1718
<pre class="line-numbers"><code class="prism language-bash" data-prism>docker run -it --rm \
1819
--volume /var/run/docker.sock:/var/run/docker.sock \
@@ -23,9 +24,11 @@
2324

2425

2526
<p>This will pull the <b>docker-compose.yml</b> file for the new version and perform the installation. Once the setup completes, verify that you have the latest version of Appwrite.</p>
27+
2628
<div class="ide margin-bottom" data-lang="bash" data-lang-label="Bash">
2729
<pre class="line-numbers"><code class="prism language-bash" data-prism>docker ps | grep appwrite/appwrite</code></pre>
2830
</div>
31+
2932
<p>Verify that the <b>STATUS</b> doesn't have any errors and all the <b>appwrite/appwrite</b> containers have version : <?php echo APP_VERSION_STABLE; ?></p>
3033

3134
<p>We can now start the migration. Navigate to the <b>appwrite</b> directory where your <b>docker-compose.yml</b> is present and run the following command</p>

0 commit comments

Comments
 (0)