Unverified Commit 9d243b94 authored by Tom Moulard's avatar Tom Moulard Committed by GitHub
Browse files

Add rocketchat-mongo restart and healthcheck (#32)

* fix: add rocketchat-mongo restart and healthcheck

* fix tests
parent a1197bcf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7,6 +7,13 @@ services:
  rocketchat-mongo:
    image: mongo:4.0
    command: mongod --smallfiles --oplogSize 128 --replSet rs01
    restart: unless-stopped
    healthcheck:
      test: >
        CMD echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
      interval: 10s
      timeout: 10s
      retries: 5
    volumes:
      - './rocketchat/db/:/data/db'
    networks:
+8 −0
Original line number Diff line number Diff line
@@ -849,11 +849,19 @@ services:
    - /home/runner/work/make-my-server/make-my-server/rocketchat/scripts:/home/hubot/scripts:rw
  rocketchat-mongo:
    command: mongod --smallfiles --oplogSize 128 --replSet rs01
    healthcheck:
      interval: 10s
      retries: 5
      test: 'CMD echo ''db.runCommand("ping").ok'' | mongo localhost:27017/test --quiet

        '
      timeout: 10s
    image: mongo:4.0
    labels:
      traefik.enable: "false"
    networks:
      rocketchat-internal: {}
    restart: unless-stopped
    volumes:
    - /home/runner/work/make-my-server/make-my-server/rocketchat/db:/data/db:rw
  rocketchat-mongo-replica: