Skip to content

Instantly share code, notes, and snippets.

@jlelse
Forked from skhameneh/docker-compose.yml
Created April 8, 2018 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlelse/271c15cac3d26ee0a1f80d00a038c681 to your computer and use it in GitHub Desktop.
Save jlelse/271c15cac3d26ee0a1f80d00a038c681 to your computer and use it in GitHub Desktop.
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