This guide is for testing and evaluation purposes only and is not intended for production deployments. Please reach out to us at support@openops.com if you’d like to learn how to set up OpenOps in a production environment.
This guide explains how to install the OpenOps Docker Compose release on a newly created Azure VM.You’ll need relevant permissions to create a new VM, edit its networking settings, and set up required permissions for Cloud Shell.
Name your machine and select the latest Ubuntu Server as the image. Choose a size with at least 2 CPUs and 8GB of RAM. Other settings can be left as default.
Click Review + create at the bottom, then Create to create the machine. You will be asked to download the private key.
You may see a warning about leaving port 22 (SSH) open. For production use, it’s recommended to open this port only to relevant IPs, depending on your network configuration. In this guide, we’re using CloudShell to connect to the machine, so the port needs to remain open.
Once the machine is created, click Go to resource, then navigate to Networking > Network settings and Create port rule > Inbound port rule to set the required destination port to 80. You can open the port to everyone, to your personal IP address only, or to a preferred range. Click Add to create the rule.
Under Overview, select Connect and SSH using Azure CLI to open the Cloud Shell inside Azure Portal.
After a quick validation and setup, CloudShell should open and connect to the machine.
Ensure you’re using the Bash shell by running the following command (you may need to paste it using a right-click instead of Ctrl+V):
Edit the application URL to use the machine’s public IP address:
Copy
Ask AI
sed -i 's/http:\/\/localhost/http:\/\/'$(wget -4qO - https://ifconfig.io/ip)'/g' .env
Open the .env file in the OpenOps installation folder. Change the values of the following variables that represent credentials. Do it now, as you won’t be able to change these values after the initial deployment:
OPS_OPENOPS_ADMIN_EMAIL: the email of your OpenOps installation’s root admin account.
OPS_OPENOPS_ADMIN_PASSWORD: the password of your OpenOps installation’s root admin account.
OPS_POSTGRES_USERNAME: the username of the Postgres database that OpenOps uses.
OPS_POSTGRES_PASSWORD: the password of the Postgres database that OpenOps uses.
OPS_ANALYTICS_ADMIN_PASSWORD: the password of the OpenOps Analytics admin account (the username is hardcoded to admin).
Install Docker using Snap:
Copy
Ask AI
sudo snap install docker
Pull the images and run the Docker containers (rerun the pull command if you encounter a rate limit):
For production usage, it’s recommended to enable TLS (HTTPS). In addition to the security aspect, this also ensures that workflow templates load properly in all browsers.The easiest way to enable TLS is to use an OpenOps script that requests and sets up a TLS certificate from Let’s Encrypt. Before running the script, make sure you have a domain name that points to your ‘s external IP address. If you’re configuring DNS right before running the script, you may need to wait for the DNS change to propagate.
Run the following command in your terminal:
Copy
Ask AI
curl -fsS https://openops.sh/tls | sh
When prompted, enter a domain name that points to the external IP address of your .
When prompted, enter an email address to receive certificate-related notifications from Let’s Encrypt.
The script will use the Certbot library to request a certificate for your domain from Let’s Encrypt. It receives and saves the certificate, updates the OpenOps configuration file accordingly, and restarts OpenOps.By default, the certificate expires in 3 months. See https://certbot.org/renewal-setup if you want to configure auto-renewal.