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.

41 lines
848 B

8 years ago
8 years ago
  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:alpine
  6. redis:
  7. restart: always
  8. image: redis:alpine
  9. web:
  10. restart: always
  11. build: .
  12. env_file: .env.production
  13. command: bundle exec rails s -p 3000 -b '0.0.0.0'
  14. ports:
  15. - "3000:3000"
  16. depends_on:
  17. - db
  18. - redis
  19. volumes:
  20. - ./public/assets:/mastodon/public/assets
  21. - ./public/system:/mastodon/public/system
  22. streaming:
  23. restart: always
  24. build: .
  25. env_file: .env.production
  26. command: npm run start
  27. ports:
  28. - "4000:4000"
  29. depends_on:
  30. - db
  31. - redis
  32. sidekiq:
  33. restart: always
  34. build: .
  35. env_file: .env.production
  36. command: bundle exec sidekiq -q default -q mailers -q push
  37. depends_on:
  38. - db
  39. - redis
  40. volumes:
  41. - ./public/system:/mastodon/public/system