Fluxme.io
App Deployment

Deploying Your First App

Step-by-step tutorial for deploying a Docker application on FluxOS.

12 min read
tutorialdeploymentdocker

This guide walks you through every step of deploying a Docker application on the Flux decentralized network — from preparing your container image to verifying your running instances. By the end, you will have a live, globally distributed application accessible via a public URL.

Prerequisites

  • •Docker image in a public container registry (Docker Hub, GitHub Container Registry, or any publicly accessible registry)
  • •FLUX tokens in your wallet to cover deployment and at least one month of hosting fees
  • •Zel ID — a Flux identity used to sign transactions and manage your apps (created via the Zelcore wallet app)
  • •Zelcore wallet installed on your desktop or mobile device for signing deployment transactions

Private registries are supported, but only for Enterprise applications. The specification carries a repoauth field per component, a PGP-encrypted credential of at most 15,000 characters; the FluxOS validator rejects it on anything else with "Private repositories are only allowed for Enterprise Applications". So for an ordinary first deployment, yes — your image must be public. Never bake secrets, API keys or credentials into a public image. Environment variables are the usual answer, and an Enterprise app has a better one: a dedicated secrets field, encrypted the same way and subject to the same 15,000-character limit, with Flux Storage for anything larger. Verified against the FluxOS validator on 10 November 2026.

Step 1: Prepare Your Docker Image

Your application must be packaged as a Docker image and pushed to a public registry. Here is an example using a simple Node.js web server.

Dockerfile

FROM node:20-alpine

WORKDIR /app

COPY package*.json ./
RUN npm ci --only=production

COPY . .

EXPOSE 3000

CMD ["node", "server.js"]

Build, tag, and push the image to Docker Hub (or your preferred public registry):

Build and push to Docker Hub

# Build the image
docker build -t myusername/myfluxapp:latest .

# Test locally before deploying
docker run -p 3000:3000 myusername/myfluxapp:latest

# Push to Docker Hub
docker login
docker push myusername/myfluxapp:latest

Always use a specific version tag (e.g., v1.0.0) in addition to "latest". When you update your app on Flux, the network pulls the image by its exact tag, so using versioned tags gives you precise control over rollouts.

Step 2: Access the Flux Deployment Interface

Navigate to home.runonflux.io in your web browser. This is the FluxOS marketplace and management dashboard. Click "Connect" in the top-right corner and log in with your Zel ID. You can sign in by scanning a QR code with the Zelcore mobile app or by entering your Zel ID credentials directly.

Once authenticated, navigate to "My Apps" from the sidebar, then click "Register Flux App" to open the deployment form.

Step 3: Define the App Specification

The deployment form requires you to fill in the app specification. Each field controls how your container is launched and managed on the network. Here is a complete example specification:

Example App Specification (JSON)

{
  "name": "my-web-app",
  "description": "A Node.js web application deployed on Flux",
  "owner": "YOUR_ZEL_ID_HERE",
  "compose": [
    {
      "name": "mywebapp",
      "description": "Main web server",
      "repotag": "myusername/myfluxapp:latest",
      "ports": [3000],
      "domains": [""],
      "environmentParameters": [
        "NODE_ENV=production",
        "LOG_LEVEL=info"
      ],
      "commands": [],
      "containerPorts": [3000],
      "containerData": "/app/data",
      "cpu": 0.5,
      "ram": 512,
      "hdd": 2,
      "tipiered": false,
      "secrets": "",
      "repoauth": ""
    }
  ],
  "instances": 3,
  "contacts": [""],
  "geolocation": []
}

Key fields explained:

  • •name — Unique app name across the entire Flux network. Must be lowercase alphanumeric with hyphens only. This becomes part of your default URL.
  • •repotag — The full Docker image reference, e.g., myusername/myfluxapp:latest.
  • •ports — The external port(s) your app will be reachable on. Flux maps these from the container ports.
  • •containerPorts — The port(s) your container listens on internally (must match the EXPOSE in your Dockerfile).
  • •environmentParameters — Environment variables passed to the container at runtime. Format: KEY=VALUE.
  • •containerData — The path inside the container to mount persistent storage. Data in this directory survives container restarts.
  • •cpu — CPU cores allocated (e.g., 0.5 for half a core). Must be within the tier limit.
  • •ram — RAM in megabytes (e.g., 512 for 512 MB).
  • •hdd — Persistent SSD storage in gigabytes.
  • •instances — Number of instances to run. The floor was 3 until block 2,176,519; specification v8 lowered it to 1. On the live network today, 2 is by far the most common value (1,240 of 2,064 applications), and 75% run fewer than 3.

Step 4: Choose the Deployment Tier

Based on the resource requirements you specified, the interface will indicate which tier your app falls into. The tier is determined automatically by the highest resource value you request:

ResourceCumulus MaxNimbus MaxStratus Max
CPU Cores0.524
RAM2 GB (2048 MB)8 GB (8192 MB)16 GB (16384 MB)
SSD Storage5 GB50 GB200 GB

If any single resource exceeds the Cumulus limit, your app will be deployed on Nimbus nodes. If any resource exceeds the Nimbus limit, it will require Stratus nodes. Higher tiers cost more but provide access to more powerful hardware.

Step 5: Calculate Cost & Submit

The deployment interface displays an estimated monthly cost in FLUX before you submit. The cost formula accounts for CPU, RAM, HDD, and the number of instances. Review the cost carefully — you are paying for one month upfront. Click "Register Flux App" to proceed.

The registration transaction also includes a small one-time blockchain transaction fee (typically less than 0.1 FLUX). Make sure your wallet has slightly more than the displayed deployment cost.

Step 6: Sign the Transaction

After clicking register, a signing request is sent to your Zelcore wallet. Open Zelcore and approve the transaction. This signs the app specification with your Zel ID and broadcasts it to the Flux blockchain. The transaction is confirmed within a few minutes as it is included in a block.

Step 7: Wait for Deployment

Once the registration transaction is confirmed on-chain, FluxOS nodes begin the deployment process. Eligible nodes detect the new app, pull the Docker image, and start the container. This process typically takes 5-15 minutes depending on the size of your Docker image and current network activity. You can monitor the deployment status from the "My Apps" section of the dashboard.

During deployment, you will see the status progress through several stages: Registered (on-chain but not yet deployed), Spawning (nodes are pulling the image), and Running (all instances are live).

Step 8: Verify Your App Is Running

Once all instances are running, your app is accessible at its default URL. You can also verify each individual instance:

Verify your running app

# Access via default Flux hostname
curl https://my-web-app.app.runonflux.io

# Check individual instance IPs (shown in dashboard)
curl http://<node-ip>:<port>

# View running instances via Flux API
curl https://api.runonflux.io/apps/location/my-web-app

The dashboard shows each instance with its hosting node IP address, uptime, and health status. Click on an individual instance to view its container logs, resource utilization, and restart history.

Monitoring Your Deployed App

The FluxOS dashboard provides real-time monitoring for all your deployed apps. Key metrics include container CPU and memory usage, network I/O, and uptime per instance. You can view live logs by selecting an instance and clicking "Logs". If an instance becomes unhealthy, FluxOS automatically migrates it to a new node — this process is called app respawning and happens transparently.

Updating Your App

To update a running app (deploy a new version of your Docker image), push the updated image to your registry with the same tag, then go to "My Apps" in the dashboard and click "Redeploy". This triggers all instances to pull the latest version of the image and restart. Alternatively, you can modify the app specification (e.g., change environment variables, adjust resource limits, or change the image tag) by submitting an app update transaction.

Push an update

# Build and push the updated image
docker build -t myusername/myfluxapp:latest .
docker push myusername/myfluxapp:latest

# Then click "Redeploy" in the FluxOS dashboard,
# or use the Flux API:
# POST to the app update endpoint via the dashboard UI

Redeploying causes a brief downtime for each instance as the container is stopped, the new image is pulled, and the container is restarted. With 3 or more instances, rolling updates keep your app available — but there may be a short window where some instances are running the old version while others run the new version.


Congratulations — you now have a live, decentralized application running on the Flux network. From here, you can configure custom domains, set up SSL, tune resource allocations, and scale your instance count. Refer to the App Specifications & Pricing article for detailed resource limits and the Custom Domains & SSL article for domain configuration.

What We Verified, and What We Did Not

We will not tell you this procedure is certified end to end, because it is not. Registering an application costs FLUX, and we have not spent it. Here is exactly where the line falls, as of 10 November 2026.

Claim on this pageHow it stands
The specification fields, their types and their limitsVerified against the FluxOS validator in the RunOnFlux/flux source, HEAD 69955f19.
Private registries are Enterprise-only, via an encrypted repoauth of at most 15,000 charactersVerified in the validator. This page previously said private registries were unsupported, which was wrong.
Up to 10 components per applicationVerified: MAX_APP_COMPONENTS in the source. Six-component applications are live on the network.
The registration rules — ports, instance counts, duration, pricingVerified live, and served on our own deployment-rules page from the protocol rather than retyped.
The eight steps, performed start to finish on the real networkNOT tested. It costs FLUX to register an application. We have not done it, so we do not certify it.
"Typically 5–15 minutes" for deployment to completeNOT measured. It is an order of magnitude we read, not a figure we timed.

Why say so rather than quietly imply the whole page is checked: the steps come from the official guide and the interface, and the parts a reader is most likely to get wrong — field names, limits, what is Enterprise-only — are the parts we did verify at the source. The two rows marked NOT above are the two you should confirm for yourself on your first deployment. If you run it and something differs, that is worth telling us.

Measured on this site

Before writing a specification, check what the network currently accepts: minimum instances, allowed ports, duration limits and the price per resource unit are all listed under the Flux deployment rules, each with the date it was read.

Once deployed, your application appears among the applications deployed on Flux within a block or two, with its instance count and remaining duration.

What to read next, and why

Read the Flux app specification for every field, the port rules since block 1,420,000, and the protocol’s own rate card.

Read hosting a game server on Flux for more than half of everything deployed on the network.

Read deploying from an AI agent for the MCP server, live since September 2026.

Read custom domains for a Flux app for DNS, certificates, and routing to instances that move.

Read hardening a Flux node for the checklist, and what not to sell as a service.