Skip to content

Running beside another stack

Collimo can run on a Docker host that already runs other stacks, such as another monitoring tool. Two things can collide: container names and ports. And two Collimo stacks can't share one Docker host.

Container names

Collimo's containers have fixed names:

Container When
collimo always
collimo-victoria-metrics always
collimo-gotify, collimo-igotify with the gotify or igotify profile
collimo-postgres with the postgres profile
collimo-apprise with the apprise profile

Docker allows only one container of each name per host. Another stack with different names is fine. A second Collimo stack on the same host fails to deploy with Conflict. The container name "/collimo" is already in use, whatever you call the stack.

Ports

Port on the Docker host Used by Change it with
8090 the dashboard WEB_PORT
8091 the bundled Gotify GOTIFY_PORT
8092 the bundled iGotify IGOTIFY_PORT
8093 the bundled Apprise APPRISE_PORT
127.0.0.1:5432 the bundled PostgreSQL INVENTORY_DB_PORT

The last four open only when their profile is on. VictoriaMetrics opens no port. If something else already has 8090, set another, and open the dashboard there:

WEB_PORT=8095

A port that's taken shows when you deploy, as port is already allocated.

Trying a test stack beside a live one

Because two Collimo stacks can't share a host, run the test stack on a second Docker host, such as a small VM. Then keep it from getting in the live stack's way:

  • Reading the same equipment is fine. Both stacks can use the same read-only accounts. Each reads the UniFi console separately, so the console answers twice as many requests. To spare it, set UNIFI_ENABLED=false on the test stack if you're only trying hypervisors or storage.
  • Don't send the same alerts twice. Leave the notification channels off on the test stack, or set NOTIFY_DEFAULT=off. The license's own alerts are still sent to any channel it has.
  • Give its archive copies their own name. If both copy their archive to the same share or bucket, set a different BACKUP_NAME on the test stack, such as collimo-test. With the same name, the two would prune each other's copies, and a fresh test stack would restore the live one's archive.
  • The trial is its own. After the private beta, a new stack starts its own 30-day trial. During it, the test stack needs a key, as any does.

When you're done, remove the test stack and its volumes.

If something's wrong

What you see What to do
The container name "/collimo" is already in use Another Collimo stack runs on this host. Use another host, or remove the old stack
port is already allocated Set WEB_PORT, or the port of the bundled service named in the message

More in Troubleshooting.