update notes, helperbot, phosphorus

This commit is contained in:
Ruben 2025-07-19 23:52:19 -05:00
commit 8dab75afb0
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5
29 changed files with 1340 additions and 46 deletions

View file

@ -0,0 +1,31 @@
LOCAL_DOMAIN=merping.synth.download
AUTHORIZED_FETCH=true
MAX_TOOT_CHARS=100000
MAX_BIO_CHARS=100000
# 5mb, 5mb
MAX_EMOJI_SIZE=5242880
MAX_REMOTE_EMOJI_SIZE=5242880
# 200mb, 200mb
MAX_IMAGE_SIZE=209715200
MAX_VIDEO_SIZE=209715200
MAX_POLL_OPTIONS=25
MAX_REACTIONS=6
MAX_MEDIA_ATTACHMENTS=16
MAX_REMOTE_MEDIA_ATTACHMENTS=16
FETCH_REPLIES_ENABLED=true
FETCH_REPLIES_COOLDOWN_MINUTES=15
FETCH_REPLIES_INITIAL_WAIT_MINUTES=5
FETCH_REPLIES_MAX_GLOBAL=1000
FETCH_REPLIES_MAX_SINGLE=500
FETCH_REPLIES_MAX_PAGES=500
SIDEKIQ_CONCURRENCY=20
GITHUB_REPOSITORY=melontini/mastodon

View file

@ -0,0 +1,99 @@
services:
web:
# we use our own synth-soc fork
image: ghcr.io/melontini/mastodon:nightly
restart: always
env_file:
- .env.secrets
- .env
command: bundle exec puma -C config/puma.rb
networks:
- masto
- ip6net
- db
healthcheck:
test: ['CMD-SHELL',"curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || exit 1"]
ports:
- "127.0.0.1:46098:3000"
depends_on:
redis:
condition: service_healthy
volumes:
- ./public/system:/mastodon/public/system
streaming:
image: ghcr.io/melontini/mastodon-streaming:nightly
restart: always
env_file:
- .env.secrets
- .env
command: node ./streaming/index.js
networks:
- masto
- ip6net
- db
healthcheck:
test: ['CMD-SHELL', "curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1"]
ports:
- "127.0.0.1:58834:4000"
depends_on:
redis:
condition: service_healthy
sidekiq:
image: ghcr.io/melontini/mastodon:nightly
restart: always
env_file:
- .env.secrets
- .env
command: bundle exec sidekiq
depends_on:
redis:
condition: service_healthy
networks:
- masto
- ip6net
- db
volumes:
- ./public/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 7' || false"]
redis:
restart: always
image: redis:alpine
networks:
- masto
volumes:
- ./redis:/data
healthcheck:
test: "redis-cli ping"
interval: 5s
retries: 20
# tor is a wip - consider setting up later
## Uncomment to enable federation with tor instances along with adding the following ENV variables
## http_hidden_proxy=http://privoxy:8118
## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
# tor:
# image: sirboops/tor
# networks:
# - external_network
# - internal_network
#
# privoxy:
# image: sirboops/privoxy
# volumes:
# - ./priv-config:/opt/config
# networks:
# - external_network
# - internal_network
networks:
db:
name: postgres_db
external: true
ip6net:
name: ip6net
external: true
masto: