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

42 lines
867 B

  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres
  6. redis:
  7. restart: always
  8. image: redis
  9. neo4j:
  10. restart: always
  11. build:
  12. context: .
  13. dockerfile: Dockerfile.neo4j
  14. web:
  15. restart: always
  16. build:
  17. context: .
  18. dockerfile: Dockerfile.app
  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. - neo4j
  27. volumes:
  28. - ./public/assets:/mastodon/public/assets
  29. - ./public/system:/mastodon/public/system
  30. sidekiq:
  31. restart: always
  32. build:
  33. context: .
  34. dockerfile: Dockerfile.app
  35. env_file: .env.production
  36. command: bundle exec sidekiq -q default -q mailers
  37. depends_on:
  38. - db
  39. - redis
  40. - neo4j
  41. volumes:
  42. - ./public/system:/mastodon/public/system