Single user mode disables registrations and redirects the landing page to your public profile. Do you want to enable single user mode? No
Are you using Docker to run Mastodon? Yes
PostgreSQL host: db PostgreSQL port: 5432 Name of PostgreSQL database: postgres Name of PostgreSQL user: postgres Password of PostgreSQL user: Database configuration works! 🎆
Do you want to store uploaded files on the cloud? No
Do you want to send e-mails from localhost? No SMTP server: smtp.126.com SMTP port: 465 SMTP username: feiju_bot@126.com SMTP password: SMTP authentication: plain SMTP OpenSSL verify mode: none Enable STARTTLS: auto E-mail address to send e-mails "from": feiju_bot@126.com Send a test e-mail with this configuration right now? no
Do you want Mastodon to periodically check for important updates and notify you? (Recommended) Yes
This configuration will be written to .env.production Save configuration? Yes Below is your configuration, save it to an .env.production file outside Docker:
# Generated with mastodon:setup on 2026-02-26 09:40:39 UTC
...
It is also saved within this container so you can proceed with this wizard.
Now that configuration is saved, the database schema must be loaded. If the database already exists, this will erase its contents. Prepare the database now? Yes Running `RAILS_ENV=production rails db:setup` ...
I, [2026-02-26T09:40:43.743014 #28] INFO -- : [dotenv] Loaded .env.production Database 'postgres' already exists Done!
All done! You can now power on the Mastodon server 🐘
Do you want to create an admin user straight away? Yes Username: admin E-mail: 00-isomer-cabbies@icloud.com INFO 2026-02-26T09:41:47.330Z pid=7 tid=2h3: Sidekiq 8.0.9 connecting to Redis with options {size: 10, pool_name: "internal", url: "redis://redis:6379/0", driver: :hiredis} I, [2026-02-26T09:41:47.369565 #7] INFO -- : [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 5d9608d1-3a95-4a9b-aa3f-c6a3af3d3a60) to Sidekiq(mailers) at 2026-02-26 10:41:47 UTC with arguments: "UserMailer", "welcome", "deliver_now", {args: [#<GlobalID:0x00007fb14f5d7980 @uri=#<URI::GID gid://mastodon/User/1>>]} You can login with the password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx You can change your password once you login.
将生成后的配置内容(...)手动写入到.env.production文件中
注意保存初始管理员密码(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
手动初始化数据库(可选)
如果已经执行完成mastodon:setup的Do you want to create an admin user straight away? Yes步骤,则无需手动初始化数据库