Skip to content

Commit ec7df93

Browse files
Bot Updating Documentation
1 parent cc6bc9b commit ec7df93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/images/docker-mastodon.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ services:
140140
- SIDEKIQ_THREADS=5 #optional
141141
- DB_POOL=5 #optional
142142
- NO_CHOWN= #optional
143+
- MASTODON_PROMETHEUS_EXPORTER_ENABLED= #optional
143144
volumes:
144145
- /path/to/mastodon/config:/config
145146
ports:
146147
- 80:80
147148
- 443:443
149+
- 9394:9394 #optional
148150
restart: unless-stopped
149151
```
150152
@@ -193,8 +195,10 @@ docker run -d \
193195
-e SIDEKIQ_THREADS=5 `#optional` \
194196
-e DB_POOL=5 `#optional` \
195197
-e NO_CHOWN= `#optional` \
198+
-e MASTODON_PROMETHEUS_EXPORTER_ENABLED= `#optional` \
196199
-p 80:80 \
197200
-p 443:443 \
201+
-p 9394:9394 `#optional` \
198202
-v /path/to/mastodon/config:/config \
199203
--restart unless-stopped \
200204
lscr.io/linuxserver/mastodon:latest
@@ -210,6 +214,7 @@ Containers are configured using parameters passed at runtime (such as those abov
210214
| :----: | --- |
211215
| `80:80` | Port for web frontend |
212216
| `443:443` | Port for web frontend |
217+
| `9394:9394` | Port for Prometheus metrics |
213218

214219
### Environment Variables (`-e`)
215220

@@ -255,6 +260,7 @@ Containers are configured using parameters passed at runtime (such as those abov
255260
| `SIDEKIQ_THREADS=5` | The number of threads for sidekiq to use. See [notes](https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads). |
256261
| `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). |
257262
| `NO_CHOWN=` | Set to `true` to skip chown of /config on init. *READ THE APPLICATION NOTES BEFORE SETTING THIS*. |
263+
| `MASTODON_PROMETHEUS_EXPORTER_ENABLED=` | If set to `true`, Mastodon’s Ruby processes (web & Sidekiq) will enable the Prometheus instrumentation. |
258264

259265
### Volume Mappings (`-v`)
260266

@@ -480,6 +486,8 @@ To help with development, we generate this dependency graph.
480486
svc-nginx -> legacy-services
481487
init-services -> svc-php-fpm
482488
svc-php-fpm -> legacy-services
489+
init-services -> svc-prom
490+
svc-prom -> legacy-services
483491
init-services -> svc-sidekiq
484492
svc-sidekiq -> legacy-services
485493
init-services -> svc-streaming
@@ -493,6 +501,7 @@ To help with development, we generate this dependency graph.
493501

494502
## Versions
495503

504+
* **21.10.25:** - Add prometheus exporter support.
496505
* **20.10.25:** - Add vips-heif.
497506
* **08.07.25:** - Rebase to Alpine 3.22.
498507
* **06.06.25:** - Rebase to Alpine 3.21, replace deprecated imagemagick with vips.

0 commit comments

Comments
 (0)