Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ app_setup_block_enabled: true
app_setup_block: |
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 `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:glitch generate-secret` once for each.
* To generate keys for `SECRET_KEY_BASE` & `OTP_SECRET` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:{{ release_tag }} generate-secret` once for each.

* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:glitch generate-vapid`
* To generate keys for `VAPID_PRIVATE_KEY` & `VAPID_PUBLIC_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:{{ release_tag }} generate-vapid`

* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:glitch generate-active-record`
* To generate keys for `ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY`, `ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT`, & `ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY` run `docker run --rm -it --entrypoint /bin/bash lscr.io/linuxserver/mastodon:{{ release_tag }} generate-active-record`

Both of the secret generation aliases above can be run without any other setup having been carried out.

Expand All @@ -97,6 +97,12 @@ app_setup_block: |

For more information check out the [mastodon documentation](https://docs.joinmastodon.org/).

### Upgrade from 4.7 to 5.0

* Stop your running 4.7 container and pull the new image, make sure the DB and Redis are still running
* Run `docker compose run --rm -e SKIP_POST_DEPLOYMENT_MIGRATIONS=true --entrypoint /bin/bash mastodon migrate`
* Once the migrations are complete, start the Mastodon container as normal

### Running separate sidekiq instances

It is currently only supported to run a single queue per container instance *or* all queues in a single container instance.
Expand Down Expand Up @@ -174,6 +180,7 @@ init_diagram: |
"mastodon:glitch" <- Base Images
# changelog
changelogs:
- {date: "03.12.26:", desc: "Add migration helper for major version upgrades."}
- {date: "29.11.26:", desc: "Fetch Ruby from library image to match the version required by upstream."}
- {date: "05.07.26:", desc: "Rebase to Alpine 3.24."}
- {date: "21.10.25:", desc: "Add prometheus exporter support."}
Expand Down
6 changes: 6 additions & 0 deletions root/migrate
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

cd /app/www || exit 1

bundle exec rails db:migrate