Advertisement
Guest User

Rocket.Chat

a guest
Dec 3rd, 2017
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4. rocketchat:
  5. image: rocketchat/rocket.chat:latest
  6. restart: unless-stopped
  7. volumes:
  8. - ./uploads:/app/uploads
  9. environment:
  10. - PORT=3000
  11. - ROOT_URL=http://localhost:3000
  12. - MONGO_URL=mongodb://mongo:27017/rocketchat
  13. - MONGO_OPLOG_URL=mongodb://mongo:27017/local
  14. - MAIL_URL=smtp://smtp.email
  15. # - HTTP_PROXY=http://proxy.domain.com
  16. # - HTTPS_PROXY=http://proxy.domain.com
  17. depends_on:
  18. - mongo
  19. network_mode: "bridge"
  20. labels:
  21. - "traefik.backend=rocketchat"
  22. - "traefik.frontend.rule=Host: your.domain.tld"
  23.  
  24. mongo:
  25. image: mongo:3.2
  26. restart: unless-stopped
  27. volumes:
  28. - ./data/db:/data/db
  29. #- ./data/dump:/dump
  30. command: mongod --smallfiles --oplogSize 128 --replSet rs0
  31. network_mode: "bridge"
  32. labels:
  33. - "traefik.enable=false"
  34.  
  35. # this container's job is just run the command to initialize the replica set.
  36. # it will run the command and remove himself (it will not stay running)
  37. mongo-init-replica:
  38. image: mongo:3.2
  39. command: 'mongo mongo/rocketchat --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"'
  40. depends_on:
  41. - mongo
  42.  
  43. # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
  44. hubot:
  45. image: rocketchat/hubot-rocketchat:latest
  46. restart: unless-stopped
  47. environment:
  48. - ROCKETCHAT_URL=rocketchat:3000
  49. - ROCKETCHAT_ROOM=GENERAL
  50. - ROCKETCHAT_USER=bot
  51. - ROCKETCHAT_PASSWORD=botpassword
  52. - BOT_NAME=bot
  53. # you can add more scripts as you'd like here, they need to be installable by npm
  54. - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
  55. depends_on:
  56. - rocketchat
  57. labels:
  58. - "traefik.enable=false"
  59. volumes:
  60. - ./scripts:/home/hubot/scripts
  61. # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
  62. ports:
  63. - 3001:8080
  64.  
  65. #traefik:
  66. # image: traefik:latest
  67. # restart: unless-stopped
  68. # command: traefik --docker --acme=true --acme.domains='your.domain.tld' --acme.email='your@email.tld' --acme.entrypoint=https --acme.storagefile=acme.json --defaultentrypoints=http --defaultentrypoints=https --entryPoints='Name:http Address::80 Redirect.EntryPoint:https' --entryPoints='Name:https Address::443 TLS.Certificates:'
  69. # ports:
  70. # - 80:80
  71. # - 443:443
  72. # volumes:
  73. # - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement