闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
569 B

  1. version: '2'
  2. services:
  3. db:
  4. image: postgres
  5. redis:
  6. image: redis
  7. app:
  8. build: .
  9. env_file: .env.production
  10. web:
  11. extends: app
  12. command: bundle exec rails s -p 3000 -b '0.0.0.0'
  13. ports:
  14. - "3000:3000"
  15. depends_on:
  16. - db
  17. - redis
  18. volumes:
  19. - ./public/assets:/mastodon/public/assets
  20. - ./public/system:/mastodon/public/system
  21. sidekiq:
  22. extends: app
  23. command: bundle exec sidekiq -q default -q mailers
  24. depends_on:
  25. - db
  26. - redis
  27. volumes:
  28. - ./public/system:/mastodon/public/system