Sanitized mirror from private repository - 2026-04-20 01:32:01 UTC
This commit is contained in:
45
hosts/vms/matrix-ubuntu-vm/mastodon/.env.production.template
Normal file
45
hosts/vms/matrix-ubuntu-vm/mastodon/.env.production.template
Normal file
@@ -0,0 +1,45 @@
|
||||
# Mastodon Environment Configuration
|
||||
# Copy to .env.production and fill in values
|
||||
|
||||
LOCAL_DOMAIN=mastodon.vish.gg
|
||||
SINGLE_USER_MODE=false
|
||||
|
||||
# Generate with: openssl rand -hex 64
|
||||
SECRET_KEY_BASE=<GENERATE_SECRET>
|
||||
OTP_SECRET=<GENERATE_SECRET>
|
||||
|
||||
# Database (using host PostgreSQL)
|
||||
DB_HOST=172.17.0.1
|
||||
DB_PORT=5432
|
||||
DB_NAME=mastodon_production
|
||||
DB_USER=mastodon
|
||||
DB_PASS=REDACTED_DB_PASSWORD
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
# Locale
|
||||
DEFAULT_LOCALE=en
|
||||
|
||||
# SMTP Configuration (Gmail)
|
||||
# See docs/SMTP.md for setup instructions
|
||||
SMTP_SERVER=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_LOGIN=your-email@example.com
|
||||
SMTP_PASSWORD=REDACTED_SMTP_PASSWORD
|
||||
SMTP_AUTH_METHOD=plain
|
||||
SMTP_OPENSSL_VERIFY_MODE=none
|
||||
SMTP_ENABLE_STARTTLS=auto
|
||||
SMTP_FROM_ADDRESS="Mastodon <notifications@mastodon.vish.gg>"
|
||||
|
||||
# File storage
|
||||
PAPERCLIP_SECRET=<GENERATE_SECRET>
|
||||
|
||||
# Search (optional)
|
||||
ES_ENABLED=false
|
||||
|
||||
# Encryption keys - Generate with: docker compose run --rm web bin/rails db:encryption:init
|
||||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=<GENERATE>
|
||||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=<GENERATE>
|
||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=<GENERATE>
|
||||
53
hosts/vms/matrix-ubuntu-vm/mastodon/docker-compose.yml
Normal file
53
hosts/vms/matrix-ubuntu-vm/mastodon/docker-compose.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
services:
|
||||
redis:
|
||||
restart: unless-stopped
|
||||
image: redis:7-alpine
|
||||
networks:
|
||||
- internal_network
|
||||
volumes:
|
||||
- ./redis:/data
|
||||
|
||||
web:
|
||||
image: ghcr.io/mastodon/mastodon:v4.5.7
|
||||
restart: unless-stopped
|
||||
env_file: .env.production
|
||||
command: bundle exec puma -C config/puma.rb
|
||||
networks:
|
||||
- external_network
|
||||
- internal_network
|
||||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
- redis
|
||||
volumes:
|
||||
- ./public/system:/mastodon/public/system
|
||||
|
||||
streaming:
|
||||
image: ghcr.io/mastodon/mastodon-streaming:v4.5.7
|
||||
restart: unless-stopped
|
||||
env_file: .env.production
|
||||
networks:
|
||||
- external_network
|
||||
- internal_network
|
||||
ports:
|
||||
- '4000:4000'
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
sidekiq:
|
||||
image: ghcr.io/mastodon/mastodon:v4.5.7
|
||||
restart: unless-stopped
|
||||
env_file: .env.production
|
||||
command: bundle exec sidekiq
|
||||
networks:
|
||||
- external_network
|
||||
- internal_network
|
||||
depends_on:
|
||||
- redis
|
||||
volumes:
|
||||
- ./public/system:/mastodon/public/system
|
||||
|
||||
networks:
|
||||
external_network:
|
||||
internal_network:
|
||||
internal: true
|
||||
Reference in New Issue
Block a user