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. Have Fun and Happy Nextclouding with How To Install Docker On Ubuntu 16.04 2. The Documentation for Rocket.Chat is here. Round about a minute your containers up and running and the Setup-Wizard should appear in your webbrowser (you have to open it by yourself):Īdd your admin-user here and finish the wizard. Then check if containers are running with: docker ps We should correct the permissions of files and directories, the fastest way is to use plesk repair command: plesk repair fs -v Save file and use docker-compose to bring up the container. Now we config the Apache
0 Comments
Leave a Reply. |