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.

55 lines
1.1 KiB

7 years ago
7 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. image: gargron/mastodon
  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/system:/mastodon/public/system
  29. streaming:
  30. restart: always
  31. build: .
  32. image: gargron/mastodon
  33. env_file: .env.production
  34. command: npm run start
  35. ports:
  36. - "4000:4000"
  37. depends_on:
  38. - db
  39. - redis
  40. sidekiq:
  41. restart: always
  42. build: .
  43. image: gargron/mastodon
  44. env_file: .env.production
  45. command: bundle exec sidekiq -q default -q mailers -q pull -q push
  46. depends_on:
  47. - db
  48. - redis
  49. volumes:
  50. - ./public/system:/mastodon/public/system