From 6cf49f9b4be8f8afe3a09b0f4a2af64c5eb62f88 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Fri, 27 Jan 2023 03:16:03 -0600 Subject: [PATCH] Bot Updating Documentation --- images/docker-mastodon.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/images/docker-mastodon.md b/images/docker-mastodon.md index 535faefb4..aed2b1d55 100755 --- a/images/docker-mastodon.md +++ b/images/docker-mastodon.md @@ -43,11 +43,17 @@ This image provides various versions that are available via tags. Please read th ## Application Setup -To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it -w /app/www --entrypoint rake lscr.io/linuxserver/mastodon secret` once for each. +We provide aliases for the common commands that execute in the correct context so that environment variables from secrets are available to them: -To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it -w /app/www --entrypoint rake lscr.io/linuxserver/mastodon mastodon:webpush:generate_vapid_key` +* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon generate-secret` once for each. -To use `tootctl` you can run something like `docker exec -it -w /app/www mastodon bin/tootctl ` +* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon generate-vapid` + +Both of the secret generation aliases above can be run without any other setup having been carried out. + +* To use `tootctl` you can run something like `docker exec -it lscr.io/linuxserver/mastodon /tootctl ` + +Using `tootctl` requires you to complete the initial Mastodon configuration first. This container *requires* separate postgres and redis instances to run.