Install a Variable Store in Docker

The OverOps Variable Store can be made available to other containers through networking.
In this guide, we'll run the Variable Store locally, binding to port 8080 on the host machine. The configuration file and storage data directory are mounted into the container from the host machine.

There are two versions of the Variable Store

  • Bind Mount
  • Amazon S3

Run the Variable Store (bind mount)

📘

Tip

Pull overops/storage-server:latest from Docker Hub

1. Create a private folder

2. Create a storage folder

🚧

Important

The private and storage folder needs to be on the same directory from which you run the docker commands or the path to the private and storage folder needs to be explicitly provided in the docker command arguments.

3. In the private folder, create the file settings.yaml based on this example.

4. Run the overops/storage-server container

docker run -d -p 8080:8080 \
--mount type=bind,source="$(pwd)"/storage,target=/opt/takipi-storage/storage \
--mount type=bind,source="$(pwd)"/private,target=/opt/takipi-storage/private \ 
overops/storage-server:latest

5. Verify connectivity on https://app.overops.com/ in your browser

Run the Variable Store (Amazon S3)

📘

Pull overops/storage-server-s3:latest from Docker Hub

1. Create a private folder

🚧

Important

The private folder needs to be on the same directory from which you run the docker commands or the path to the private folder needs to be explicitly provided in the docker command arguments.

2. In the private folder, create the file settings.yaml based on this example.

In settings.yaml set the bucket name and folder to use and
set access key and secret key, or leave blank if attaching an IAM role.

s3Fs:
  bucket: <BUCKET_NAME>
  pathPrefix: <FOLDER_IN_BUCKET>
  credentials:
	accessKey: <AWS_ACCESS_KEY>
        secretKey: <AWS_SECRET_KEY>

3. Run the overops/storage-server container

docker run -d -p 8080:8080 \
--mount type=bind,source="$(pwd)"/private,target=/opt/takipi-storage/private \ 
overops/storage-server-s3:latest

4. Verify connectivity on https://app.overops.com/ in your browser