Before you start
You need:- A machine that can reach your database and run Docker. It needs outbound access to port 443. No inbound port is required.
- A database account you can create, or a database administrator who can create one.
- A Concatflow workspace.
1
Create a read-only account
The agent refuses to start with an account that can write. Create one that can only read. On PostgreSQL, run this as an administrator, replacing Pick a real password. To expose more schemas, or for MySQL and MariaDB, see Create a read-only account.
app with your database name:2
Create the dataset
In the dashboard, open Datasources, then New dataset. If the team intro appears, choose Start with Orbo. Pick your database engine, and select Through an agent. Name the dataset and select Continue.
The connection type is set once. To move an existing dataset behind an agent, create a new dataset.
3
Generate an enrollment token
Select Generate a token. The dashboard shows a
docker run command with the token filled in.The token works once and expires after 7 days. Generating a new one cancels the previous one.4
Run the agent
On the machine that can see the database, run the command. Fill in
DATABASE_URL yourself, in your terminal. Never paste the password into the dashboard.--hostname sets the name the dashboard shows for this agent. Without it, Docker uses the container ID.5
Check the logs
6
Pick your schemas
Back in the dashboard, the agent shows as Online. Within a few seconds the flow moves on to the schemas the agent found. Pick the ones to expose and continue.
Next steps
Run two agents
Keep the dataset online when one machine goes down.
Open the right ports
The two hostnames your firewall must allow.