From a31cd220ee31010e97a5a92edb96189e26fc943b Mon Sep 17 00:00:00 2001 From: aus-social <42644106+aus-social@users.noreply.github.com> Date: Fri, 24 Aug 2018 02:19:00 +1000 Subject: [PATCH] Follow production best practice (#679) I've deployed from master and didn't checkout a stable release tag.... --- Running-Mastodon/Docker-Guide.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Running-Mastodon/Docker-Guide.md b/Running-Mastodon/Docker-Guide.md index 1e84a6b1..f112fa87 100644 --- a/Running-Mastodon/Docker-Guide.md +++ b/Running-Mastodon/Docker-Guide.md @@ -13,9 +13,14 @@ The project now includes a `Dockerfile` and a `docker-compose.yml` file (which r ## Setting up Clone Mastodon's repository. - - git clone https://github.com/tootsuite/mastodon - cd mastodon + + # Clone mastodon to ~/live directory + git clone https://github.com/tootsuite/mastodon.git live + # Change directory to ~/live + cd ~/live + # Checkout to the latest stable branch + git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1) + Review the settings in `docker-compose.yml`. Note that it is **not default** to store the postgresql database and redis databases in a persistent storage location. If you plan on running your instance in production, you **must** uncomment the [`volumes` directive](https://github.com/tootsuite/mastodon/blob/972f6bc861affd9bc40181492833108f905a04b6/docker-compose.yml#L7-L16) in `docker-compose.yml`.