---
title: "One dashboard, many relays: deploying Mesh with Dokploy"
description: "How Dokploy helps Mesh Network Association deploy and maintain relays across independent servers, preserve their identities, and prepare for a network spanning more hosting providers."
canonical_url: "https://www.mesh-network.org/blog/dokploy-multi-server-relays"
---

> Index of every page on this site: [llms.txt](https://www.mesh-network.org/llms.txt)

Adding a relay to Mesh should be exciting. Another machine helps the network grow. That's where Dokploy comes in. With [Dokploy](https://dokploy.com/), deployment has become refreshingly straightforward. We manage our relay services from one dashboard, choose which server runs each one, and apply a prepared deployment with a click.

The Dokploy team generously provided Mesh Network Association with a **twelve-month Enterprise Self-Hosted license**. We're grateful for their support for our infrastructure and our work on decentralized communications. This article shares a concrete example of what that support makes easier: bringing our existing Azure relays into the same operational workflow as our self-hosted infrastructure.

## A growing network, a familiar deployment workflow

Our installation includes two relays on our main server and two more on separate Azure virtual machines at the time of writing. Each remote relay has its own public address, identity keys and persistent databases. Keeping those differences clear matters just as much as making deployments convenient.

Dokploy gives us a particularly useful structure: one Mesh project, a production environment, and separate Compose services for the website, the local relays and each Azure relay.

<table>
<thead>
  <tr>
    <th>
      Service
    </th>
    
    <th>
      Where it runs
    </th>
    
    <th>
      Deployment scope
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Mesh website
    </td>
    
    <td>
      Main server
    </td>
    
    <td>
      Website only
    </td>
  </tr>
  
  <tr>
    <td>
      Local relays
    </td>
    
    <td>
      Main server
    </td>
    
    <td>
      The two local relays
    </td>
  </tr>
  
  <tr>
    <td>
      Azure relay 1
    </td>
    
    <td>
      First Azure VM
    </td>
    
    <td>
      That relay only
    </td>
  </tr>
  
  <tr>
    <td>
      Azure relay 2
    </td>
    
    <td>
      Second Azure VM
    </td>
    
    <td>
      That relay only
    </td>
  </tr>
</tbody>
</table>

We can publish the website independently. We can inspect a remote relay or deploy a configuration to one Azure VM. The dashboard makes the destination visible alongside the service. That small detail proves enormously helpful when several machines run the same software.

## How the central dashboard reaches each server

Dokploy's **Remote Servers** model is what we rely on. Our self-hosted Dokploy instance connects to each remote Linux machine over SSH and manages its deployments there. The containers and their data stay on their respective hosts. These are independent deployment servers; we have not joined them into a shared Swarm cluster. Dokploy documents these choices in its [deployment options guide](https://docs.dokploy.com/docs/core/deployment-options).

For each Azure VM, we created a dedicated SSH key in Dokploy. We installed its public key on the target, verified the host identity, and registered the server with its address, SSH port and user. Running **Setup Server** came next. We validated the result. That preparation gives subsequent deployments a consistent starting point.

When creating a Compose service, we select its destination server. Opening that service later shows the server name at the top. The relationship stays easy to check. The official [remote server setup guide](https://docs.dokploy.com/docs/core/remote-servers/instructions) follows this same workflow.

This opens a clear path beyond Azure. A compatible Linux server at another hosting provider can use the same SSH-based management model. We still provision the machine and configure its network ports with the hosting provider. But deploying the relay follows the workflow we already know. We choose hosting locations and providers around the network's needs while keeping one management interface.

## Docker Compose keeps the relay configuration explicit

Dokploy's [native Docker Compose support](https://docs.dokploy.com/docs/core/docker-compose) fits Mesh extremely well. Our deployment definition describes the image, advertised address, transport ports, restart policy and persistent storage together. Everything's right there.

Here's a simplified relay configuration, using the `latest` image tag and an example hostname:

```yaml [compose.yaml]
services:
    relay:
        image: ghcr.io/mockingmagician/mesh-relay:latest
        command: ['--host', 'relay.example.org', '--external-port', '41234']
        restart: unless-stopped
        ports:
            - '41234:41234/tcp'
            - '41234:41234/udp'
        volumes:
            - relay-data:/data

volumes:
    relay-data:
        external: true
        name: mesh-relay-data
```

The external volume already exists on each target host. It contains that relay's identity and databases. It survives container replacement. The same volume name on two independent VMs refers to two separate stores. A new relay gets its own storage and identity.

Both **TCP and UDP** must reach the published port. The advertised hostname and external port must match the public endpoint, including any firewall or NAT configuration. Our Azure services publish these transports directly through Docker. The [Mesh Docker guide](https://www.mesh-network.org/docs/relay-docker) explains the relay-specific networking requirements in detail.

## Bringing existing relays under Dokploy without losing their identities

Our Azure machines already had running relays. We wanted to retain their established identities and data while gaining Dokploy's deployment workflow. That was the challenge.

We first inventoried each container, its image, ports and volume. We backed up the databases and keys. We exported the existing image and verified the copies. At cutover, we stopped the original container and took a final cold snapshot. Then we deployed the replacement through Dokploy using the same image and external volume. Only one container used the relay's data at a time.

After deployment, we checked the mounted volume and identity files. We verified signed identity responses over public TCP and local UDP. We observed a public UDP round trip. Both relays kept their identities. The original containers remain stopped as a deployment rollback option.

Dokploy made the destination, configuration and deployment result easy to follow throughout. We could introduce the new management workflow while keeping the relay software unchanged. That's a very practical strength for us. The platform fits around an existing installation.

## What "deploy in one click" means in daily use

Once a server is prepared and its Compose service configured, our usual operation is simple. We open the relay service, review the saved configuration, and click **Deploy**. We follow the result in **Deployments**. We read application output in **Logs**. We use the container controls when a restart is all we need.

For the initial Azure adoption, we preserved the existing image and kept automatic deployment disabled. Our relay rollouts remain deliberate. We review the image reference and pull policy before deploying a new version. This gives us a convenient interface and explicit control over what runs.

We already use Dokploy's API in the website's GitHub Actions workflow: after building and publishing its container image, the workflow requests deployment of the website service. The relay services currently remain manually deployed. The same dashboard therefore supports both our automated website delivery and our deliberate relay rollouts.

## Ready to welcome more relays

The benefit becomes clearer with every server we add. The same service structure, server selection and deployment controls remain familiar. We can repeat a reviewed configuration. We change the destination and public endpoint. We attach that relay's storage and deploy from the same place.

As the fleet grows, capacity planning, backups and release checks will grow with it. Dokploy gives us a repeatable foundation for that work. It substantially reduces the deployment overhead. We can spend more time developing Mesh, testing the protocol and supporting relay operators. Adding the next relay already feels much easier.

Mesh traffic continues to flow between the relays themselves. Dokploy manages their lifecycle over SSH. It stays outside the messaging path. Running relay containers can continue operating if the management dashboard is temporarily unavailable.

## Thank you, Dokploy

For a small association, a clear and dependable deployment workflow makes a real difference. Dokploy brings our services together in an interface that's approachable enough for routine operations and explicit enough for technical work. We're delighted with how naturally it handles our mix of local infrastructure and remote Azure machines. It gives us a foundation for more providers and more relays.

The remote-server and Compose capabilities described here are also available in Dokploy's standard self-hosted edition. The [edition comparison](https://docs.dokploy.com/docs/core/differences) explains the additional Enterprise capabilities. We're grateful for the team's generous license contribution and for building a platform that makes maintaining Mesh so much more pleasant.

**Thank you to the Dokploy team for helping us grow the network, one easily managed relay at a time.**

Explore [Dokploy](https://dokploy.com/), read its [documentation](https://docs.dokploy.com/docs/core/remote-servers/instructions), or learn how to [run a Mesh relay](https://www.mesh-network.org/docs/relay-docker).

## Sitemap

See the full [sitemap](https://www.mesh-network.org/sitemap.md) for all pages.
