Last active
April 8, 2018 10:51
-
-
Save skhameneh/62d0c9d6093ffa6a67f7cea358ac11df to your computer and use it in GitHub Desktop.
Mastodon Compose Progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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