mastodon

mastodon

Docker 应用程序 from linuxserver's Repository

概述

Mastodon(https://github.com/mastodon/mastodon/) is a free, open-source social network server based on ActivityPub where users can follow friends and discover new ones..

运行时参数

网络
bridge
外壳
bash
特权
false

模板配置

WebUIPorttcp

Port for web frontend

目标
80
默认值
80
Port: 443Porttcp

Port for web frontend

目标
443
默认值
443
Port: 9394Porttcp

Port for Prometheus metrics

目标
9394
默认值
9394
AppdataPathrw

Contains all relevant configuration files.

目标
/config
LOCAL_DOMAINVariable

This is the unique identifier of your server in the network. It cannot be safely changed later.

默认值
example.com
REDIS_HOSTVariable

Redis server hostname

默认值
redis
REDIS_PORTVariable

Redis port

默认值
6379
DB_HOSTVariable

Postgres database hostname

默认值
db
DB_USERVariable

Postgres username

默认值
mastodon
DB_NAMEVariable

Postgres db name

默认值
mastodon
DB_PASSVariable

Postgres password

默认值
mastodon
DB_PORTVariable

Postgres port

默认值
5432
ES_ENABLEDVariable

Enable or disable Elasticsearch (requires a separate ES instance)

默认值
false
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEYVariable

Primary key for Active Record Encryption(https://github.com/mastodon/mastodon/pull/29831/files).

ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEYVariable

Deterministic key for Active Record Encryption(https://github.com/mastodon/mastodon/pull/29831/files).

ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALTVariable

Derivation salt for Active Record Encryption(https://github.com/mastodon/mastodon/pull/29831/files).

SECRET_KEY_BASEVariable

Browser session secret. Changing it will break all active browser sessions.

OTP_SECRETVariable

MFA secret. Changing it after initial setup will break two-factor authentication.

VAPID_PRIVATE_KEYVariable

Push notification private key. Changing it after initial setup will break push notifications.

VAPID_PUBLIC_KEYVariable

Push notification public key. Changing it after initial setup will break push notifications.

SMTP_SERVERVariable

SMTP server for email notifications

默认值
mail.example.com
SMTP_PORTVariable

SMTP server port

默认值
25
SMTP_LOGINVariable

SMTP username

SMTP_PASSWORDVariable

SMTP password

SMTP_FROM_ADDRESSVariable

From address for emails send from Mastodon

默认值
notifications@example.com
S3_ENABLEDVariable

Enable or disable S3 storage of uploaded files

默认值
false
WEB_DOMAINVariable

This can be set if you want your server identifier to be different to the subdomain hosting Mastodon. See https://docs.joinmastodon.org/admin/config/#basic(https://docs.joinmastodon.org/admin/config/#basic)

默认值
mastodon.example.com
ES_HOSTVariable

Elasticsearch server hostname

默认值
es
ES_PORTVariable

Elasticsearch port

默认值
9200
ES_USERVariable

Elasticsearch username

默认值
elastic
ES_PASSVariable

Elasticsearch password

默认值
elastic
S3_BUCKETVariable

S3 bucket hostname

AWS_ACCESS_KEY_IDVariable

S3 bucket access key ID

AWS_SECRET_ACCESS_KEYVariable

S3 bucket secret access key

S3_ALIAS_HOSTVariable

Alternate hostname for object fetching if you are front the S3 connections.

SIDEKIQ_ONLYVariable

Only run the sidekiq service in this container instance. For large scale instances that need better queue handling.

默认值
false
SIDEKIQ_QUEUEVariable

The name of the sidekiq queue to run in this container. See notes(https://docs.joinmastodon.org/admin/scaling/#sidekiq-queues).

SIDEKIQ_DEFAULTVariable

Set to `true` on the main container if you're running additional sidekiq instances. It will run the `default` queue.

默认值
false
SIDEKIQ_THREADSVariable

The number of threads for sidekiq to use. See notes(https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads).

默认值
5
DB_POOLVariable

The size of the DB connection pool, must be *at least* the same as `SIDEKIQ_THREADS`. See notes(https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads).

默认值
5
NO_CHOWNVariable

Set to `true` to skip chown of /config on init. *READ THE APPLICATION NOTES BEFORE SETTING THIS*.

MASTODON_PROMETHEUS_EXPORTER_ENABLEDVariable

If set to `true`, Mastodon’s Ruby processes (web and Sidekiq) will enable the Prometheus instrumentation.

PUIDVariable

Container Variable: PUID

默认值
99
PGIDVariable

Container Variable: PGID

默认值
100
UMASKVariable

Container Variable: UMASK

默认值
022

下载统计数据

235,098
下载总数
14,749
本月
7,927
平均每月

长期下载总量

加载图表...

详细信息

存储库
lscr.io/linuxserver/mastodon
最后更新2026-05-28
初见2022-11-08

在Unraid 上运行 Mastodon 。

Mastodon 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。