Installing ZaneOps
ZaneOps is a deployment platform that simplifies the process of managing and deploying web applications. This guide will walk you through the steps to install ZaneOps either locally or on a remote server with minimal configuration.
Prerequesites
- Ensure you have Docker installed and are using a Unix-based machine. It’s recommended to use the latest version of Docker to avoid compatibility issues.
- Ensure you have
make
,curl
,jq
andopenssl
installed :
Process
-
Create the installation directory:
Choose a directory for ZaneOps. This guide uses
/var/www/zaneops
: -
Download the makefile for the project :
-
Launch the setup process :
After this step, your directory structure should look like this:
Directoryzaneops
Directory.fluentd/
- …
Directorytemporalio
Directoryconfig
- development.yaml
- entrypoint.sh
- docker-stack.prod-http.yaml
- docker-stack.prod.yaml
- .env
- Makefile
-
Update environment variables in
.env
: The setup process will generate sane defaults for environment variables, but you can modify the contents to better suit your needs (see here for how to customize): -
Deploy ZaneOps :
-
Create your first user to login to the dashboard :
-
Log in to the dashboard by connecting to the domain specified in
ZANE_APP_DOMAIN
. If hosted locally (see instructions below), you can use http://127-0-0-1.sslip.io.
Environment Variables Explained
IMAGE_VERSION
: Specifies the ZaneOps version to install.ZANE_APP_DIRECTORY
: Defines the directory where ZaneOps will be installed.ZANE_DB_USER
/ZANE_DB_PASSWORD
: Credentials for connecting to the database.DJANGO_SECRET_KEY
: Used by the API for various security functions, such as hashing user session tokens. Generate a secure key with at least 64 characters using a tool like openssl (e.g.,openssl rand -base64 64
).ROOT_DOMAIN
: Used to generate subdomains for deployed web apps, e.g.,my-web-app.127-0-0-1.sslip.io
. The root domain itself can also host the dashboard if desired.ZANE_APP_DOMAIN
: The domain where the ZaneOps dashboard will be accessible after deployment. It can be the same asROOT_DOMAIN
Additional Commands
Use these commands for managing your ZaneOps installation:
Updating zaneops
zaneops is updated automatically to the version specified in the .env
file in IMAGE_VERSION
.
However if you use the canary
version, you will automatically be updated to the latest version on the main
branch version.
To update the version, change the version in .env
:
Then deploy again :
Installing Locally
ZaneOps can be installed locally with minimal configuration changes. To do this :
-
keep the
ZANE_APP_DOMAIN
andROOT_DOMAIN
environment variables set to http://127-0-0-1.sslip.io : -
add the
__DANGEROUS_ALLOW_HTTP_SESSION
environment variable : -
run the
deploy
command :