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.

31 lines
659 B

8 years ago
8 years ago
  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres
  6. redis:
  7. restart: always
  8. image: redis
  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. sidekiq:
  23. restart: always
  24. build: .
  25. env_file: .env.production
  26. command: bundle exec sidekiq -q default -q mailers -q push
  27. depends_on:
  28. - db
  29. - redis
  30. volumes:
  31. - ./public/system:/mastodon/public/system