Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Created April 9, 2016 03:06
Show Gist options
  • Save gnilchee/604558b6931a6034488f25e0452f3307 to your computer and use it in GitHub Desktop.
Save gnilchee/604558b6931a6034488f25e0452f3307 to your computer and use it in GitHub Desktop.
Rocket.Chat docker-compose example
mongo:
image: mongo
volumes:
- ./data/runtime/db:/data/db
- ./data/dump:/dump
command: mongod --smallfiles --oplogSize 128
nginx:
image: nginx
volumes:
- ./nginx_conf:/etc/nginx/conf.d
links:
- rocketchat:rocketchat
ports:
- 80:80
- 443:443
rocketchat:
image: rocketchat/rocket.chat:latest
volumes:
- ./uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=http://rocketchat:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
links:
- mongo:mongo
#ports:
# - 3000:3000
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
hubot:
image: rocketchat/hubot-rocketchat
environment:
- ROCKETCHAT_URL=rocketchat:3000
- ROCKETCHAT_ROOM=GENERAL
- ROCKETCHAT_USER=rocket.cat
- ROCKETCHAT_PASSWORD=botpassword
- BOT_NAME=rocket.cat
# 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
links:
- rocketchat:rocketchat
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment