Unverified Commit c7071689 authored by Tom Moulard's avatar Tom Moulard
Browse files

rocketchat: adding bot and volume

parent e7f27616
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -36,7 +36,32 @@ services:
      - 'rocketchat-internal'
    depends_on:
      - 'rocketchat-mongo'
      - 'rocketchat-mongo-replica' # replica is mandatory
    volumes:
      - './rocketchat/uploads:/app/uploads'
    labels:
      - 'traefik.enable=true'
      - 'traefik.frontend.rule=Host:rocketchat.${SITE}'
      - 'traefik.port=3000'

  # hubot, the popular chatbot (add the bot user first and change the password before starting this image)
  rocketchat-hubot:
    image: rocketchat/hubot-rocketchat:latest
    restart: unless-stopped
    environment:
      - 'ROCKETCHAT_URL=rocketchat:3000'
      - 'ROCKETCHAT_ROOM=GENERAL'
      - 'ROCKETCHAT_USER=bot'
      - 'ROCKETCHAT_PASSWORD=botpassword'
      - 'BOT_NAME=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'
    volumes:
      - './rocketchat/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
    labels:
      - 'traefik.enable=false'