diff --git a/images/docker-mastodon.md b/images/docker-mastodon.md index 535faefb4b..aed2b1d553 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.