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

37 lines
767 B

  1. version: '2'
  2. services:
  3. db:
  4. image: postgres
  5. redis:
  6. image: redis
  7. neo4j:
  8. build:
  9. context: .
  10. dockerfile: Dockerfile.neo4j
  11. web:
  12. build:
  13. context: .
  14. dockerfile: Dockerfile.app
  15. env_file: .env.production
  16. command: bundle exec rails s -p 3000 -b '0.0.0.0'
  17. ports:
  18. - "3000:3000"
  19. depends_on:
  20. - db
  21. - redis
  22. - neo4j
  23. volumes:
  24. - ./public/assets:/mastodon/public/assets
  25. - ./public/system:/mastodon/public/system
  26. sidekiq:
  27. build:
  28. context: .
  29. dockerfile: Dockerfile.app
  30. env_file: .env.production
  31. command: bundle exec sidekiq -q default -q mailers
  32. depends_on:
  33. - db
  34. - redis
  35. - neo4j
  36. volumes:
  37. - ./public/system:/mastodon/public/system