From fcd41e974d060c4a095a3f4d0690e2443aea4b37 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Tue, 26 Sep 2023 14:16:04 +0000 Subject: [PATCH] Bot Updating Documentation --- images/docker-mastodon.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/images/docker-mastodon.md b/images/docker-mastodon.md index 1ca4d9b34..25395b251 100755 --- a/images/docker-mastodon.md +++ b/images/docker-mastodon.md @@ -67,6 +67,12 @@ It is currently only supported to run a single queue per container instance *or* All containers must share the same `/config` mount and be on a common docker network. +### NO_CHOWN Option + +On larger Mastodon instances, our init process to verify that permissions are set correctly can noticeably slow down the container startup. If you are experiencing this, you can set `NO_CHOWN` to `true` to skip that step of the init. + +*Do NOT set this on first run of the container. If you enable this option you are taking full responsibility for ensuring that the permissions in your /config mount are correct. If you're even slightly unsure, don't set it.* + ### Strict reverse proxies This image automatically redirects to https with a self-signed certificate. If you are using a reverse proxy which validates certificates, you need to [disable this check for the container](https://docs.linuxserver.io/faq#strict-proxy). @@ -121,6 +127,7 @@ services: - SIDEKIQ_DEFAULT=false #optional - SIDEKIQ_THREADS=5 #optional - DB_POOL=5 #optional + - NO_CHOWN= #optional volumes: - /path/to/appdata/config:/config ports: @@ -170,6 +177,7 @@ docker run -d \ -e SIDEKIQ_DEFAULT=false `#optional` \ -e SIDEKIQ_THREADS=5 `#optional` \ -e DB_POOL=5 `#optional` \ + -e NO_CHOWN= `#optional` \ -p 80:80 \ -p 443:443 \ -v /path/to/appdata/config:/config \ @@ -229,6 +237,7 @@ Docker images are configured using parameters passed at runtime (such as those a | `SIDEKIQ_DEFAULT=false` | Set to `true` on the main container if you're running additional sidekiq instances. It will run the `default` queue. | | `SIDEKIQ_THREADS=5` | The number of threads for sidekiq to use. See [notes](https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads). | | `DB_POOL=5` | 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). | +| `NO_CHOWN=` | Set to `true` to skip chown of /config on init. *READ THE APPLICATION NOTES BEFORE SETTING THIS*. | ### Volume Mappings (`-v`)