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

56 lines
1.1 KiB

8 years ago
  1. version: '3'
  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. web:
  16. build: .
  17. image: gargron/mastodon
  18. restart: always
  19. env_file: .env.production
  20. command: bundle exec rails s -p 3000 -b '0.0.0.0'
  21. ports:
  22. - "3000:3000"
  23. depends_on:
  24. - db
  25. - redis
  26. volumes:
  27. - ./public/assets:/mastodon/public/assets
  28. - ./public/packs:/mastodon/public/packs
  29. - ./public/system:/mastodon/public/system
  30. streaming:
  31. build: .
  32. image: gargron/mastodon
  33. restart: always
  34. env_file: .env.production
  35. command: npm run start
  36. ports:
  37. - "4000:4000"
  38. depends_on:
  39. - db
  40. - redis
  41. sidekiq:
  42. build: .
  43. image: gargron/mastodon
  44. restart: always
  45. env_file: .env.production
  46. command: bundle exec sidekiq -q default -q mailers -q pull -q push
  47. depends_on:
  48. - db
  49. - redis
  50. volumes:
  51. - ./public/system:/mastodon/public/system