闭社主体 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.

60 lines
1.2 KiB

8 years ago
  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:alpine
  6. ### Uncomment to enable DB persistance
  7. # volumes:
  8. # - ./postgres:/var/lib/postgresql/data
  9. redis:
  10. restart: always
  11. image: redis:alpine
  12. ### Uncomment to enable REDIS persistance
  13. # volumes:
  14. # - ./redis:/data
  15. app:
  16. build: .
  17. image: gargron/mastodon
  18. web:
  19. extends:
  20. service: app
  21. restart: always
  22. env_file: .env.production
  23. command: bundle exec rails s -p 3000 -b '0.0.0.0'
  24. ports:
  25. - "3000:3000"
  26. depends_on:
  27. - db
  28. - redis
  29. volumes:
  30. - ./public/assets:/mastodon/public/assets
  31. - ./public/packs:/mastodon/public/packs
  32. - ./public/system:/mastodon/public/system
  33. streaming:
  34. extends:
  35. service: app
  36. restart: always
  37. env_file: .env.production
  38. command: npm run start
  39. ports:
  40. - "4000:4000"
  41. depends_on:
  42. - db
  43. - redis
  44. sidekiq:
  45. extends:
  46. service: app
  47. restart: always
  48. env_file: .env.production
  49. command: bundle exec sidekiq -q default -q mailers -q pull -q push
  50. depends_on:
  51. - db
  52. - redis
  53. volumes:
  54. - ./public/system:/mastodon/public/system