Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mastodon Compose Progress
version: '2'
services:
db:
restart: always
image: postgres:alpine
redis:
restart: always
image: redis:alpine
mastodon:
stdin_open: true
tty: true
command: "/bin/sh -c 'bundle exec rails assets:precompile && bundle exec rails db:migrate && (bundle exec rails s -p 3000 -b 0.0.0.0 & (sleep 10 && npm start) & bundle exec sidekiq -q default -q mailers -q pull -q push)'"
environment:
- RAILS_ENV=production
- REDIS_HOST=redis
- REDIS_PORT=6379
- DB_HOST=db
- DB_USER=postgres
- DB_NAME=postgres
- DB_PASS=
- DB_PORT=5432
- LOCAL_DOMAIN=notifications@example.com
- LOCAL_HTTPS=false
- SMTP_SERVER=smtp.mailgun.org
- SMTP_PORT=587
- SMTP_LOGIN=
- SMTP_PASSWORD=
- SMTP_FROM_ADDRESS=notifications@example.com
- PAPERCLIP_SECRET=******************must generate a secret using "rake secret"
- SECRET_KEY_BASE=******************must generate a secret using "rake secret"
image: gargron/mastodon
depends_on:
- db
- redis
volumes:
- data-volume:/mastodon/public/assets
- data-volume:/mastodon/public/system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.