Docker Guide for Coti Nodes
  • Introduction
    • Why Docker?
  • The Basics
    • Installing Docker
    • Whoami
    • Docker Compose
  • Installing the Coti node
    • Installing Docker on a Server
    • Downloading the Configuration Files
    • Creating the .env file
    • Launching Your Node
    • Upgrading Your Node
  • Docker Reference
    • Commands Reference
Powered by GitBook
On this page
  • Creating the .env file
  • Example .env file
  • Optional Variables
  • Summary
  1. Installing the Coti node

Creating the .env file

PreviousDownloading the Configuration FilesNextLaunching Your Node

Last updated 1 year ago

.env are a way to make certain values accessible to an application running in a container. We'll use the .env file to configure the node with the information that is specific to your node (like private key, seed key, and server name).

If you haven't created your private key and seed information yet, please see the step-by-step instructions on .

Creating the .env file

From within the coti-node directory, create a new file called .env. To do this in vim, for example, one could run

vim .env

After creating the .env file, copy the following contents into the file, replacing everything in the angle brackets (<>), including the angle brackets themselves, with the information for your node.

.env
ACTION="<mainnet or testnet>"
SERVERNAME="<Your desired mainnet or testnet URL>"
PKEY="<Your private key>"
SEED="<Your seed key>"
EMAIL="<Your email address>"

Example .env file

Here is an example .env file for a fictional testnet node called "my-coti-node.xyz", with a private key of 1234567890, and a seed key of ABCDEFGHIJ.

.env (example)
ACTION="testnet"
SERVERNAME="my-coti-node.xyz"
PKEY="1234567890"
SEED="ABCDEFGHIJ"
EMAIL="info@my-coti-node.xyz"

Optional Variables

An optional, but useful environment variable, is VERSION. This controls which version of the coti-node software that Docker will run.

If you want to run the latest version (which is generally suitable for testnet node operators), then you don't need to specify the VERSION environment variable.

On the other hand, if you want to run a particular version of the Coti node, this can be done by adding the following line to your .env file

VERSION="X.Y.Z"

Summary

At this point, you have done all of the hard work needed to set up your node. The next step shows how to launch the node with Docker.

where X.Y.Z is the release tag of the version you wish to run. A list of the available versions can be found , which correspond to the made available by Coti.

GeordieR's guide
here
official releases