version: '2'
services:
db:
restart: always
image: postgres:alpine
volumes:
- ./postgres-data:/var/lib/postgresql/data
redis:
image: redis:alpine
web:
build: .
env_file: .env.production
command: bundle exec rails s -p 3000 -b '0.0.0.0'
ports:
- "3000:3000"
depends_on:
- db
- redis
- ./public/assets:/mastodon/public/assets
- ./public/system:/mastodon/public/system
streaming:
command: npm run start
- "4000:4000"
sidekiq:
command: bundle exec sidekiq -q default -q mailers -q pull -q push