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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |