Advertisement
Guest User

docker-compose.yml

a guest
Nov 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.14 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=8001
  11.       - ROOT_URL=http://localhost:8001
  12.       - MONGO_URL=mongodb://mongo:27017/rocketchat
  13.       - MONGO_OPLOG_URL=mongodb://mongo:27017/local
  14.       - MAIL_URL=smtp://smtp.email
  15.       -  NODE_TLS_REJECT_UNAUTHORIZED=0
  16. #       - HTTP_PROXY=http://proxy.domain.com
  17. #       - HTTPS_PROXY=http://proxy.domain.com
  18.     depends_on:
  19.       - mongo
  20.     ports:
  21.       - 8001:8001
  22.     labels:
  23.       - "traefik.backend=rocketchat"
  24.       - "traefik.frontend.rule=Host: your.domain.tld"
  25.  
  26.   mongo:
  27.     image: mongo:3.2
  28.     restart: unless-stopped
  29.     volumes:
  30.      - ./data/db:/data/db
  31.      #- ./data/dump:/dump
  32.     command: mongod --smallfiles --oplogSize 128 --replSet rs0
  33.     labels:
  34.       - "traefik.enable=false"
  35.     ports:
  36.       - 27017:27017
  37.  
  38.   # this container's job is just run the command to initialize the replica set.
  39.   # it will run the command and remove himself (it will not stay running)
  40.   mongo-init-replica:
  41.     image: mongo:3.2
  42.     command: 'mongo mongo/rocketchat --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"'
  43.     depends_on:
  44.       - mongo
  45.  
  46. #  # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
  47.   hubot:
  48.     image: rocketchat/hubot-rocketchat:latest
  49.     restart: unless-stopped
  50.     environment:
  51.       - ROCKETCHAT_URL=rocketchat:8001
  52.       #- ROCKETCHAT_ROOM=GENERAL
  53.       - ROCKETCHAT_USER=rocket.cat
  54.       - ROCKETCHAT_PASSWORD=123456
  55.       - RESPOND_TO_LIVECHAT=true
  56.       - BOT_NAME=rocket.bot
  57.   # you can add more scripts as you'd like here, they need to be installable by npm
  58.       - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
  59.     depends_on:
  60.       - rocketchat
  61.     labels:
  62.       - "traefik.enable=false"
  63.     volumes:
  64.       - ./scripts:/home/hubot/scripts
  65.   # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
  66.     #ports:
  67.     #  - 3001:8080
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement