docker-bits/lsio/mastodon/docker-compose.yaml

95 lines
4.0 KiB
YAML
Raw Normal View History

2022-11-09 01:03:28 +00:00
# [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..
---
version: "2.1"
services:
mastodon:
image: ghcr.io/linuxserver/mastodon
container_name: mastodon
environment:
# for UserID
- PUID=${PUID:-1024}
# for GroupID
- PGID=${PGID:-100}
2023-02-12 01:01:09 +00:00
# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
2022-11-09 01:03:28 +00:00
- TZ=${TZ:-Europe/Amsterdam}
# This is the unique identifier of your server in the network. It cannot be safely changed later.
- LOCAL_DOMAIN=example.com
# Redis server hostname
- REDIS_HOST=redis
# Redis port
- REDIS_PORT=6379
# Postgres database hostname
- DB_HOST=db
# Postgres username
- DB_USER=mastodon
# Postgres db name
- DB_NAME=mastodon
# Postgres password
- DB_PASS=mastodon
# Portgres port
- DB_PORT=5432
# Enable or disable Elasticsearch (requires a separate ES instance)
- ES_ENABLED=false
# Browser session secret. Changing it will break all active browser sessions.
- SECRET_KEY_BASE=
2023-11-14 00:36:04 +00:00
# MFA secret. Changing it after initial setup will break two-factor authentication.
2022-11-09 01:03:28 +00:00
- OTP_SECRET=
2023-11-14 00:36:04 +00:00
# Push notification private key. Changing it after initial setup will break push notifications.
2022-11-09 01:03:28 +00:00
- VAPID_PRIVATE_KEY=
2023-11-14 00:36:04 +00:00
# Push notification public key. Changing it after initial setup will break push notifications.
2022-11-09 01:03:28 +00:00
- VAPID_PUBLIC_KEY=
# SMTP server for email notifications
- SMTP_SERVER=mail.example.com
# SMTP server port
- SMTP_PORT=25
# SMTP username
- SMTP_LOGIN=
# SMTP password
- SMTP_PASSWORD=
# From address for emails send from Mastodon
- SMTP_FROM_ADDRESS=notifications@example.com
# Enable or disable S3 storage of uploaded files
- S3_ENABLED=false
2022-11-28 00:53:14 +00:00
# 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)
2022-11-09 01:03:28 +00:00
- WEB_DOMAIN=mastodon.example.com # optional
# Elasticsearch server hostname
- ES_HOST=es # optional
# Elasticsearch port
- ES_PORT=9200 # optional
# Elasticsearch username
- ES_USER=elastic # optional
# Elasticsearch password
- ES_PASS=elastic # optional
# S3 bucket hostname
- S3_BUCKET= # optional
# S3 bucket access key ID
- AWS_ACCESS_KEY_ID= # optional
# S3 bucket secret access key
- AWS_SECRET_ACCESS_KEY= # optional
# Alternate hostname for object fetching if you are front the S3 connections.
- S3_ALIAS_HOST= # optional
2022-12-31 00:53:17 +00:00
# Only run the sidekiq service in this container instance. For large scale instances that need better queue handling.
- SIDEKIQ_ONLY=false # optional
# The name of the sidekiq queue to run in this container. See [notes](https://docs.joinmastodon.org/admin/scaling/#sidekiq-queues).
- SIDEKIQ_QUEUE= # optional
# Set to `true` on the main container if you're running additional sidekiq instances. It will run the `default` queue.
- SIDEKIQ_DEFAULT=false # optional
# The number of threads for sidekiq to use. See [notes](https://docs.joinmastodon.org/admin/scaling/#sidekiq-threads).
- SIDEKIQ_THREADS=5 # optional
# 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).
- DB_POOL=5 # optional
2023-09-27 01:14:52 +00:00
# Set to `true` to skip chown of /config on init. *READ THE APPLICATION NOTES BEFORE SETTING THIS*.
- NO_CHOWN= # optional
2022-11-09 01:03:28 +00:00
volumes:
# Contains all relevant configuration files.
- ${BASEDIR:-/volume1/docker}/mastodon/config:/config
ports:
# Port for web frontend
- 80:80
# Port for web frontend
- 443:443
restart: unless-stopped