Installing Agents via Docker Compose
How to install agents using Docker Compose.
This guide explains how to install agents via Docker Compose.
Prerequisites
Docker and Docker Compose installed.
A valid Connectware license key.
Procedure
Log in to the Cybus Docker registry. Enter the following command in your terminal:
docker login registry.cybus.ioWhen prompted, enter the following credentials:
Username:
licensePassword: Your Connectware license key
Create a folder for your agent (e.g.,
myAgent).Inside this folder, create a new file named
docker-compose.yml.Paste the following example configuration into your
docker-compose.ymlfile. Replace${IMAGE_TAG}with the protocol-mapper agent image version you want to use (e.g.,2.0.6).
services:
protocol-mapper-agent:
image: registry.cybus.io/cybus/protocol-mapper:${IMAGE_TAG}
environment:
CYBUS_AGENT_MODE: distributed
CYBUS_AGENT_NAME: myAgent
CYBUS_HOSTNAME_INGRESS: localhost
CYBUS_TRUST_ALL_CERTS: true
volumes:
- protocol-mapper-agent:/data
restart: unless-stopped
network_mode: host
hostname: <some-suitable-hostname>
volumes:
protocol-mapper-agent:In your terminal, run the following command to start the agent:
Optional: To run the agent with root permission, add
user: rootto thedocker-compose.ymlfile.
Result
The agent is now installed and running. To verify, use:
This command lists running containers. You should see protocol-mapper-agent in the output.
Last updated
Was this helpful?

