# Start Rocketchat only after mongo job is runningĮxec /usr/local/bin/docker-compose up rocketchat hubot # Automatically Respawn with finite limitsĮxec /usr/local/bin/docker-compose up mongoĬreate the upstart job for Rocket.Chat nano /etc/init/rocketchat_app.confĪdd the following configuration: description "Rocketchat service manager" Let's enable automatic startup & crash recovery to Rocket.Chat, for that create below config files:Ĭreate the upstart job for MongoDB nano /etc/init/rocketchat_nfĪdd the following configuration: description "MongoDB service manager for rocketchat" docker pull /rocketchat/rocket.chat:latestĭocker-compose up -d rocketchat Automatic Startup & Crash Recovery Your data should not be affected by this, since it's located in the mongo image. To update the rocketchat docker image to the latest version, you can use the following commands. Optionally, if you want a bot, so you don't have to talk to yourself, after you've created an admin user and also a bot user, edit the file docker-compose.yml again to change the variables ROCKETCHAT_USER and ROCKETCHAT_PASSWORD in the hubot section and then start up hubot: docker-compose up -d hubot Replace & 192.169.7.180 with Your Domain Name & IP and Change SSL Path according to your SSL Path. Now, type Ctrl+O and type Ctrl+X to save and exit the file.Ĭreate a new Nginx configuration file dev.conf for the domain with the following command: vi /etc/nginx/conf.d/dev.conf # Load modular configuration files from the /etc/nginx/conf.d directory. '"$http_user_agent" "$http_x_forwarded_for"' Īccess_log /var/log/nginx/access.log main '$status $body_bytes_sent "$http_referer" ' Log_format main '$remote_addr - $remote_user "$request" ' # For more information on configuration, see: Replace the nf file with the below configuration. Let's configure nf with the following command: nano /etc/nginx/nf systemctl restart nginx Configuring Nginx Server Blocks Restart apache to avoid getting error messages. The renewal process is now automated, you do not have to renew this manually. Replace and with your domain name and email: certbot -nginx -agree-tos -redirect -hsts -staple-ocsp -email -d Use the certbot command to issue a Let's Encrypt certificate. Next, we will install the certbot client which is used to create Let's Encrypt certificates: dnf install python3-certbot-nginx -y Update and install EPEL repository and the mod_ssl package on the system using the below command: dnf install epel-release mod_ssl -y For this, we will need the EPEL repository and the mod_ssl package on Rocky Linux 8 operating system. Let's issue an SSL certificate for the domain. yum install nginx -yĮnable Firewall firewall-cmd -permanent -add-service=httpįirewall-cmd -permanent -add-service=httpsįirewall-cmd -reload Install Let’s Encrypt SSL Certificate Once you're all set, we'll proceed with Rocket.Chat installation and configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |