Mon Jan 26 04:08:57 PM EST 2026

From Ample Madrill, 2 Weeks ago, written in Plain Text, viewed 1 times.
URL https://pste.us/view/bc2233f9 Embed
Download Paste or View Raw
  1. name: mastodon
  2. services:
  3.   web:
  4.     image: lscr.io/linuxserver/mastodon:latest
  5.     container_name: mastodon-web
  6.     restart: always
  7.     pull_policy: always
  8.     environment:
  9.       - TZ=America/New_York
  10.       - WEB_DOMAIN=${BASE_HOST_NAME}
  11.       - LOCAL_DOMAIN=${BASE_HOST_NAME}
  12.       - OTP_SECRET=${OTP_SECRET:-Kw6QTR4wuyqyJ7dUyg81N7s8EvksmDlu}
  13.       - SECRET_KEY_BASE=${SECRET_KEY_BASE:-EKUaB9LeLn433co2fVSF5pQj4nWDKIWm}
  14.       - ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=${ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:-OJTGYuCw5t1BEIqpAtrnK9HTUQ9jZ1QV}
  15.       - ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=${ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:-bhBhkXghpAEDioU6kefAT1zG4yy6Rwyp}
  16.       - ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=${ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:-X1nyDm6OkDJlwu6TzQ5e137G5oiQXDqc}
  17.       - VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY:-GoV9Q8Uye3f_zJS36CoiJE1DQp4yPRN0MfIkWO5Zxrk=}
  18.       - VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY:-BBEyKQxFj_haRQsH4eD_4XjvxuU3yjIIRQXysowVNdP22AVnGoP2gZ6KJJmksa80cQ1HhvzwtVx76ghG1yBolB8=}
  19.       - AWS_ACCESS_KEY_ID=
  20.       - AWS_SECRET_ACCESS_KEY=
  21.       - DB_POOL=5
  22.       - NO_CHOWN=false
  23.       - SMTP_SERVER=${EMAIL_SERVER_HOST:-172.17.0.1}
  24.       - SMTP_PORT=${EMAIL_SERVER_PORT:-25}
  25.       - SMTP_FROM_ADDRESS=no-reply@${BASE_HOST_NAME}
  26.       - SMTP_LOGIN=${EMAIL_SERVER_LOGIN_NAME:-}
  27.       - SMTP_PASSWORD=${EMAIL_SERVER_LOGIN_PASS:-}
  28.       - S3_ENABLED=false
  29.       - S3_BUCKET=
  30.       - S3_ALIAS_HOST=
  31.       - REDIS_HOST=mastodon-redis
  32.       - REDIS_PORT=6379
  33.       - DB_HOST=mastodon-postgres
  34.       - DB_USER=mastodon
  35.       - DB_NAME=mastodon
  36.       - DB_PASS=mastodon
  37.       - DB_PORT=5432
  38.       - ES_ENABLED=false
  39.       - ES_HOST=mastodon-elastic
  40.       - ES_PORT=9200
  41.       - ES_USER=elastic
  42.       - ES_PASS=elastic
  43.       - SIDEKIQ_ONLY=false
  44.       - SIDEKIQ_QUEUE=
  45.       - SIDEKIQ_DEFAULT=false
  46.       - SIDEKIQ_THREADS=5
  47.     volumes:
  48.       - /var/lib/srv/${USER}/docker/linuxserver/mastodon/latest/rootfs/config/mastodon:/config
  49.     ports:
  50.       - '172.17.0.1:59038:80'
  51.       - '172.17.0.1:59039:443'
  52.     networks:
  53.       - mastodon
  54.  
  55.   streaming:
  56.     image: ghcr.io/mastodon/mastodon-streaming:latest
  57.     container_name: mastodon-streaming
  58.     restart: always
  59.     pull_policy: always
  60.     command: node ./streaming/index.js
  61.     environment:
  62.       - REDIS_HOST=mastodon-redis
  63.       - REDIS_PORT=6379
  64.       - DB_HOST=mastodon-postgres
  65.       - DB_USER=mastodon
  66.       - DB_NAME=mastodon
  67.       - DB_PASS=mastodon
  68.       - DB_PORT=5432
  69.       - ES_ENABLED=false
  70.       - ES_HOST=mastodon-elastic
  71.       - ES_PORT=9200
  72.       - ES_USER=elastic
  73.       - ES_PASS=elastic
  74.     expose:
  75.       - 4000
  76.     depends_on:
  77.       - web
  78.       - postgres
  79.       - redis
  80.     healthcheck:
  81.       test:
  82.         [
  83.           'CMD-SHELL',
  84.           "curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1",
  85.         ]
  86.     networks:
  87.       - mastodon
  88.  
  89.   postgres:
  90.     image: postgres:14-alpine
  91.     container_name: mastodon-postgres
  92.     restart: always
  93.     pull_policy: always
  94.     shm_size: 256mb
  95.     volumes:
  96.       - /var/lib/srv/${USER}/docker/linuxserver/mastodon/latest/rootfs/data/db/postgres:/var/lib/postgresql/data
  97.     environment:
  98.       - 'POSTGRES_USER=mastodon'
  99.       - 'POSTGRES_PASSWORD=mastodon'
  100.       - 'POSTGRES_HOST_AUTH_METHOD=trust'
  101.     networks:
  102.       - mastodon
  103.     healthcheck:
  104.       test: ['CMD', 'pg_isready', '-U', 'mastodon']
  105.  
  106.   redis:
  107.     image: redis:7-alpine
  108.     restart: always
  109.     pull_policy: always
  110.     container_name: mastodon-redis
  111.     volumes:
  112.       - /var/lib/srv/${USER}/docker/linuxserver/mastodon/latest/rootfs/data/db/redis:/data
  113.     healthcheck:
  114.       test: ['CMD', 'redis-cli', 'ping']
  115.     networks:
  116.       - mastodon
  117.  
  118. networks:
  119.   mastodon:
  120.     name: mastodon
  121.     external: false
  122.  
  123.  

Reply to "Mon Jan 26 04:08:57 PM EST 2026"

Here you can reply to the paste above

captcha