docker-compose.yml 659 B

12345678910111213141516171819202122232425262728293031
  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