2024-05-21 02:00:20 +00:00
|
|
|
# mastodon
|
|
|
|
|
|
|
|
- https://github.com/mastodon/mastodon
|
|
|
|
- https://github.com/mastodon/mastodon/pkgs/container/mastodon
|
|
|
|
- https://hub.docker.com/r/tootsuite/mastodon
|
|
|
|
|
|
|
|
## update
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ docker compose pull
|
|
|
|
$ docker compose build
|
|
|
|
$ docker compose run --rm mastodon rails db:migrate
|
|
|
|
$ docker compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
## db:encryption
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ docker compose run --rm mastodon rails db:encryption:init
|
|
|
|
|
|
|
|
$ vim .env.production
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=xxx
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=xxx
|
|
|
|
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=xxx
|
|
|
|
```
|
|
|
|
|