![]() MongoDB 테스트 mongo -eval "printjson(rs.initiate())"Ĭonnecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Rocketchat 시스템 사용자 생성 sudo useradd -M rocketchat & sudo usermod -L sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat Rocket.Chat을 설치(/opt 디렉토리에 설치) cd npm installĪdded 157 packages from 85 contributors and audited 157 packages in 62.738sįound 0 cd sudo mv /tmp/bundle /opt/Rocket.Chat Node 실행파일 symbolic link sudo ln -s /usr/bin/node /usr/local/bin/node + 2 packages from 2 contributors in 0.323s usr/bin/n -> /usr/lib/node_modules/n/bin/n Inherits, n 설치 sudo npm install -g inherits n Node.js, 빌드도구, GraphicsMagick 설치 sudo apt install -y build-essential nodejs graphicsmagick Ubuntu 패키지 관리자를 통해 Node.js가 설치되도록 구성 sudo apt-get sudo apt-get install -y curl & curl -sL | sudo bash. Ubuntu 20.04에 MongoDB 5.0 설치 sudo apt-get sudo apt-get install -y mongodb-org MongoDB 저장소 추가 echo "deb focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt//mongodb-org-5.0.listĭeb focal/mongodb-org/5.0 multiverse MongoDB GPG 서명 키 추가 wget -qO - | sudo apt-key add sudo apt sudo apt-get install gnupg Ubuntu 시스템 업그레이드 sudo apt sudo apt upgrade How To Install MongoDB 5 on Ubuntu 20.04 | 18.04 | ComputingForGeeks.Install MongoDB Community Edition on Ubuntu - MongoDB Manual. ![]() Install Rocket.Chat on Ubuntu 20.04 LTS with Let's Encrypt SSL | ComputingForGeeks.Change (1) server_name, (2) ssl_certificate and ssl_certificate_key locations (you may not need the rest of the ssl code) and (3) proxy_pass url (but keep port 3000). You can just add this to the bottom of your default server block. Edit the hosts file $ sudo nano /etc/hostsĪdd your url after localhost: 127.0.0.1 localhost.localdomain localhostġ27.0.0.1 chat 2. I can only connect via the ip address of the server with port 3000 (e.g. Open your browser to the url you specificied in ROOT_URL of the docker-compose.yml file ERRORS & SOLUTIONSĬan't connect to url specificed in ROOT_URL Launch Rocketchat: $ docker-compose up -d rocketchatĬheck docker ps to make sure Rocketchat is running: $ docker psĥ0624621e8d8 rocketchat/rocket.chat:latest "node main.js" About a minute ago Up About a minute 0.0.0.0:3000->3000/tcp rocketchat_rocketchat_1Ĥ28c285d6df9 mongo:3.2 "docker-entrypoint.s…" 7 minutes ago Up 7 minutes 27017/tcp rocketchat_mongo_1 Initialize the database: $ docker-compose up -d mongo-init-replica 5. You should see output similar to below: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĤ28c285d6df9 mongo:3.2 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 27017/tcp rocketchat_mongo_1 We need to start up mongo before you can launch Rocket.Chat: $ docker-compose up -d mongoĬheck that mongo has started properly by listing the running Docker containers: $ docker ps # - /var/run/docker.sock:/var/run/docker.sock 4. # command: traefik -docker -acme=true -acme.domains='' -acme.email=' ' -acme.entrypoint=https -acme.storagefile=acme.json -defaultentrypoints=http -defaultentrypoints=https -entryPoints='Name:http Address::80 Redirect.EntryPoint:https' -entryPoints='Name:https Address::443 TLS.Certificates:' # this is used to expose the hubot port for notifications on the host on port 3001, e.g. EXTERNAL_SCRIPTS=hubot-help,hubot-seen,hubot-links,hubot-diagnostics # you can add more scripts as you'd like here, they need to be installable by npm Image: rocketchat/hubot-rocketchat:latest # hubot, the popular chatbot (add the bot user first and change the password before starting this image) # it will run the command and remove himself (it will not stay running)Ĭommand: 'mongo mongo/rocketchat -eval "rs.initiate()"' # this container's job is just run the command to initialize the replica set. "=Host: "Ĭommand: mongod -smallfiles -oplogSize 128 -replSet rs0 ![]() MONGO_OPLOG_URL=mongodb://mongo:27017/local ROOT_URL= - MONGO_URL=mongodb://mongo:27017/rocketchat If you fail to specify the protocol (http) or the port (:3000, but only if you’re using one), the installation won’t work. If you want to use your VPS’ public IP to connect to Rocketchat, replace localhost:3000 with that IP. If you’d like to host Rocketchat on, or even, replace localhost:3000 with that and be sure to have your DNS set up properly. You will need to change the ROOT_URL based on your particular needs. ![]() You will need to change a few of the variables to fit your unique installation.įind line 11 of the docker-compose.yml file, which begins with ROOT_URL. Next, create a docker-compose.yml file to tell Docker how you want the system configured: $ sudo nano docker-compose.ymlĬopy/paste the code below example file from Rocketchat. We will place this in our user’s home directory: $ cd ~ Creating the docker-compose fileįirst, we create a space for our docker-compose.yml file. See How to Install Docker Compose on Linux Systems 3. See How To Install Docker On Ubuntu 16.04 2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |