ZUS In the Cloud deployment on a VM
Overview
This guide provides a step-by-step walkthrough on how to deploy ZUS in the Cloud using Docker including setting up the environment, configuring necessary fields, and launching the service successfully.
This article covers the following topics:
Prerequisites
Docker and Docker Compose are installed on the VM
Get started and install Docker
If necessary, refer to this post for additional guidance on setting up Docker
Customer Support team has assisted pulling the zus_in_cloud docker image on the VM
Reach out to the Support team for assistance
Steps to Deploy the ZINC Docker Image
Connect to the Virtual Machine
Create a working directory
Run the commands below to set up the project directory.mkdir zus_in_the_cloud cd zus_in_the_cloudDownload the
docker-compose.ymlfile
https://zus-in-the-cloud-deployment.s3.amazonaws.com/prod/docker-compose.yml
Run the command below to download the docker compose configuration.wget https://zus-in-the-cloud-deployment.s3.amazonaws.com/prod/docker-compose.yml
Create a Directory for Storing Secrets
Before running Docker, create a secure directory to store Zilla secrets. We recommend using the
/opt/location.
sudo mkdir /opt/zilla && \
sudo chown 1000:1000 /opt/zilla && \
sudo chmod 700 /opt/zilla && \
mkdir /opt/zilla/zinc-config /opt/zilla/zinc-outputAuthentication
ZUS in the Cloud supports two authentication methods. Choose one based on your setup:
Option 1: Use Zilla Token
Reach out to the Support team to request the Zilla Token.
Save the Zilla Tokens in that secret directory /opt/zilla/zinc-config with file-name Zilla_API_Key.
Enter the command below.
cat > /opt/zilla/zinc-config/Zilla_API_KeyEnter the Zilla Tokens in JSON format and press enter. Note: This Token JSON will be provided by the Customer Support Personnel. Example
{"access_token": "JWT string", "refresh_token": "JWT string"}Press
Ctrl+dto save the file.
Option 2: Use Client ID and Secret (Recommended)
If you're using Client ID and Secret for authentication, see this guide for steps to retrieve the credentials.
Configure docker-compose.yml
Open the docker-compose.yml file and update the following fields:
TENANT_DOMAIN:
Set this to your customer Zilla tenant domain.ZILLA_URL:
Specify the Zilla host URL corresponding to your tenant. The list below provides some examples of different URLs Zilla uses for different regions or tenants.https://app.zillasecurity.com https://app2.zillasecurity.com https://anz.zillasecurity.com https://eu.zillasecurity.com https://uk.zillasecurity.comZILLA_CLIENT_ID and ZILLA_CLIENT_SECRET:
Provide the client id and secret configured in Zilla in the Authentication step. For additional details on retrieving these values, see https://zilla.atlassian.net/wiki/spaces/ZILLA/pages/3651141644.
Start the Container
After completing the configuration, run the following command to start the zus-in-the-cloud container.
docker-compose up -d