Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- rocketchat:
- image: rocketchat/rocket.chat:latest
- restart: unless-stopped
- volumes:
- - ./uploads:/app/uploads
- environment:
- - PORT=8001
- - ROOT_URL=http://localhost:8001
- - MONGO_URL=mongodb://mongo:27017/rocketchat
- - MONGO_OPLOG_URL=mongodb://mongo:27017/local
- - MAIL_URL=smtp://smtp.email
- - NODE_TLS_REJECT_UNAUTHORIZED=0
- # - HTTP_PROXY=http://proxy.domain.com
- # - HTTPS_PROXY=http://proxy.domain.com
- depends_on:
- - mongo
- ports:
- - 8001:8001
- labels:
- - "traefik.backend=rocketchat"
- - "traefik.frontend.rule=Host: your.domain.tld"
- mongo:
- image: mongo:3.2
- restart: unless-stopped
- volumes:
- - ./data/db:/data/db
- #- ./data/dump:/dump
- command: mongod --smallfiles --oplogSize 128 --replSet rs0
- labels:
- - "traefik.enable=false"
- ports:
- - 27017:27017
- # this container's job is just run the command to initialize the replica set.
- # it will run the command and remove himself (it will not stay running)
- mongo-init-replica:
- image: mongo:3.2
- command: 'mongo mongo/rocketchat --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"'
- depends_on:
- - mongo
- # # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
- hubot:
- image: rocketchat/hubot-rocketchat:latest
- restart: unless-stopped
- environment:
- - ROCKETCHAT_URL=rocketchat:8001
- #- ROCKETCHAT_ROOM=GENERAL
- - ROCKETCHAT_USER=rocket.cat
- - ROCKETCHAT_PASSWORD=123456
- - RESPOND_TO_LIVECHAT=true
- - BOT_NAME=rocket.bot
- # you can add more scripts as you'd like here, they need to be installable by npm
- - EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics
- depends_on:
- - rocketchat
- labels:
- - "traefik.enable=false"
- volumes:
- - ./scripts:/home/hubot/scripts
- # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier
- #ports:
- # - 3001:8080
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement