Skip to main content

Mastodon


Docker Compose

.env.production

Set DB Host and Redis Host:

REDIS_HOST=redis
DB_HOST=db

Init Keys

docker compose run --rm web bin/rails db:encryption:init
# Do NOT change these variables once they are set
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=xxx
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=xxx
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=xxx