Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

|TuTo| Installation de Rocket.chat + MongoDB

Featured Replies

rocketchat.jpg.113ebba4efe5737d3476d9d7a3c07b90.jpg

Information:

Je crée ce tuto en français basé sous UNRAID, j'ai essayé de faire le plus simple et le plus explicite pour les novices!

 

Rocket.Chat est un Messenger ou MSN pour les plus anciens, hébergé sur votre serveur.

Je n'aborderais que la partie installation de Rocket.Chat, ce tuto n'est PAS destiné à la configuration de Rocket.Chat ni de son utilisation.

 

Pré-requis:

Je pars du principe que vous avez installé:

- le plugin "COMMUNITY APPLICATIONS"

- que vous avez activé DOCKER.

- que vous connaissez l'ip du NAS

 

Installation:

1) Création d'un fichier .conf

 

Ce connecter en SSH à votre serveur:

0.png.939bd5717f3d0c8d8efe96f998acd581.png

 

  • Création d'un dossier pour MongoDB (adapter le chemin si vos conteneurs sont stockés ailleurs):
mkdir /mnt/user/appdata/mongodb

 

  • Ouvrir le dossier:
cd /mnt/user/appdata/mongodb

 

  • Création et ouverture du fichier mongod.conf:
nano mongod.conf

 

  • Faire un copier / coller (avec la souris) des commandes suivantes dans la fenêtre SSH tel quel:
# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /data/db
  journal:
    enabled: true
#  engine:
#  mmapv1:
#  wiredTiger:

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1

# how the process runs
processManagement:
  timeZoneInfo: /usr/share/zoneinfo

#security:

#operationProfiling:

replication:
  replSetName: "rs01"

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:

 

  • Faire un "CTRL + o" pour enregistrer le fichier
  • Faire ENTRER
  • Puis CTRL + x pour fermer le fichier

 

Vous pouvez fermer la fenêtre SSH.

 

 

2) Installation de MongoDB

 

a) Téléchargement de l'image MongoDB

 

  • Dans apps rechercher MongoDB et ouvrir la page d'installation du conteneur:

1.png.4dde541bdf063470e88efe8bd57b80ae.png

 

 

b) Paramétrage du conteneur

 

  • Renommer le conteneur enlevant les MAJUSCULES cela évite les problèmes par la suite:

2.png.dd08c2edb590850f2afdadc6bda2a24a.png

 

 

  • Activer le mode avancée du conteneur:

3.thumb.png.276c96103116257ba637e586b9965866.png

 

 

  • Ajouter la commande suivante comme ceci:

4.png.4457bbf123bec92ef051cbf99df2ef0c.png

 

-f /data/db/mongod.conf

 

 

  • Vérifier que le chemin est le même:

5.png.ef6f83429cc3b82a823b5a7d0783d7dd.png

 

 

c) Création d'un compte root et rocketchat dans le conteneur MongoDB

 

  • Ouvrir la Console de MongoDB

6.png.101ba93362dd45b3c54877b9e81c2661.png

 

  • Entrer successivement les commandes suivante:
mongo

 

rs.initiate()

 

  • Faire Entrer au clavier

 

use admin

 

db.createUser({user: "root",pwd: "mon_MDP_root",roles: [{ role: "root", db: "admin"}]})

 mon_MDP_root = créer un mdp root

 

db.createUser({user: "rocketchat",pwd: "mon_MDP_rocketchat",roles: [{role: "readWrite", db: "local" }]})

mon_MDP_rocketchat = créer un mdp rocketchat

 

use rocketchat

 

db.createUser({user: "rocketchat",pwd: "mon_MDP_rocketchat",roles: [{ role: "dbOwner",db: "rocketchat" }]})

mon_MDP_rocketchat = remettre le mdp crée au dessus

 

PENSEZ A NOTER LES MOT DE PASSES QUELQUE PART!!!

  • Fermer la console MongoDB

 

 

3) Installation de Rocket.Chat

 

a) Téléchargement de l'image

 

  • Rechercher dans APPS le conteneur rocket.chat

7.png.a2a2d9e5e1155d2d9780bc9f51883f2a.png

 

 

b) Paramétrage du conteneur RocketChat

 

  • Ajouter une variable: (adapter le MDP !!!)

8.png.1a1a5182da0bf115bbd969f0f3ea5aa6.png

 

MONGO_OPLOG_URL
mongodb://rocketchat:mon_mdp_rocketchat@IP_DU_NAS:27017/local?authSource=admin

 

 

  • Modifier la variable MONGO DB: (adapter le MDP)
mongodb://rocketchat:[email protected]:27017/rocketchat

 

 

  • Modifier la variable Rocket.Chat URL: (adapter l'IP)
http://192.168.10.3:3000/rocketchat

 

 

  • Voici le conteneur avec tous les paramètres:

 

9.png.37a33705f1e4d5ceb591e5c89667fbd4.png

 

c) Accès à Rocket.Chat

 

  • Pour accéder à l'interface RocketChat utiliser le lien suivant:

 

http://IP_DU_NAS:3000/rocketchat

 

FIN

5.png

Edited by totoleouf

  • 1 year later...

Bonjour, j'ai suivi votre tuto à la lettre, quand je pointe vers rocketchat, j'ai ce message Unknown path, avez-vous une idée d'où ça peut provenir?

  • Author

il faudrait voir les logs du conteneur et une capture écran de la config

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.