Skip to content

Instantly share code, notes, and snippets.

@tenten0213
Created November 16, 2016 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenten0213/1c70b420182e1c517b1f847c55c6a695 to your computer and use it in GitHub Desktop.
Save tenten0213/1c70b420182e1c517b1f847c55c6a695 to your computer and use it in GitHub Desktop.
Rocket.chat、Hubot用docker-compose.yml
rocketchat:
image: rocketchat/rocket.chat:latest
volumes:
- ./uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=http://localhost:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
# - HTTP_PROXY=http://proxy.domain.com
# - HTTPS_PROXY=http://proxy.domain.com
links:
- mongo:mongo
ports:
- 3000:3000
mongo:
image: mongo:3.2
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --oplogSize 128
# hubot, the popular chatbot (add the bot user first and change the password before starting this image)
hubot:
image: rocketchat/hubot-rocketchat:latest
environment:
- ROCKETCHAT_URL=rocketchat:3000
- ROCKETCHAT_ROOM=GENERAL
- ROCKETCHAT_USER=bot
- ROCKETCHAT_PASSWORD=password
- BOT_NAME=bot
# you can add more scripts as you'd like here, they need to be installable by npm
- EXTERNAL_SCRIPTS=hubot-seen,hubot-links,hubot-diagnostics,hubot-proxy-loader
links:
- rocketchat: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment