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

52 lines
1.0 KiB

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