Skip to content

Commit 9d2cdbb

Browse files
Bot Updating Templated Files
1 parent 97ec27c commit 9d2cdbb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,13 @@ services:
157157
- SIDEKIQ_THREADS=5 #optional
158158
- DB_POOL=5 #optional
159159
- NO_CHOWN= #optional
160+
- MASTODON_PROMETHEUS_EXPORTER_ENABLED= #optional
160161
volumes:
161162
- /path/to/mastodon/config:/config
162163
ports:
163164
- 80:80
164165
- 443:443
166+
- 9394:9394 #optional
165167
restart: unless-stopped
166168
```
167169
@@ -210,8 +212,10 @@ docker run -d \
210212
-e SIDEKIQ_THREADS=5 `#optional` \
211213
-e DB_POOL=5 `#optional` \
212214
-e NO_CHOWN= `#optional` \
215+
-e MASTODON_PROMETHEUS_EXPORTER_ENABLED= `#optional` \
213216
-p 80:80 \
214217
-p 443:443 \
218+
-p 9394:9394 `#optional` \
215219
-v /path/to/mastodon/config:/config \
216220
--restart unless-stopped \
217221
lscr.io/linuxserver/mastodon:latest
@@ -225,6 +229,7 @@ Containers are configured using parameters passed at runtime (such as those abov
225229
| :----: | --- |
226230
| `-p 80:80` | Port for web frontend |
227231
| `-p 443:443` | Port for web frontend |
232+
| `-p 9394` | Port for Prometheus metrics |
228233
| `-e PUID=1000` | for UserID - see below for explanation |
229234
| `-e PGID=1000` | for GroupID - see below for explanation |
230235
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
@@ -265,6 +270,7 @@ Containers are configured using parameters passed at runtime (such as those abov
265270
| `-e SIDEKIQ_THREADS=5` | The number of threads for sidekiq to use. See [notes](https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads). |
266271
| `-e 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). |
267272
| `-e NO_CHOWN=` | Set to `true` to skip chown of /config on init. *READ THE APPLICATION NOTES BEFORE SETTING THIS*. |
273+
| `-e MASTODON_PROMETHEUS_EXPORTER_ENABLED=` | If set to `true`, Mastodon’s Ruby processes (web & Sidekiq) will enable the Prometheus instrumentation. |
268274
| `-v /config` | Contains all relevant configuration files. |
269275

270276
## Environment variables from files (Docker secrets)
@@ -429,6 +435,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
429435

430436
## Versions
431437

438+
* **21.10.25:** - Add prometheus exporter support.
432439
* **20.10.25:** - Add vips-heif.
433440
* **08.07.25:** - Rebase to Alpine 3.22.
434441
* **06.06.25:** - Rebase to Alpine 3.21, replace deprecated imagemagick with vips.

0 commit comments

Comments
 (0)