Deploying Your Application
Once you have your Docker image built and pushed to a container registry, you can deploy it to the Mesh of Things platform. The deployment process involves adding your Docker Compose file to the Mesh of Things dashboard and configuring the necessary settings for your application.
Step 1: Access the Dashboard
- Log in to the Mesh of Things dashboard.
- Navigate to the Applications section.
- Click on Create Application.
- Select the Docker Compose option to upload your Docker Compose file, or paste the contents of your Docker Compose file directly into the dashboard.
Step 2: Configure Deployment Settings
- Name: Give your application a name.
- Description: Optionally, provide a description for your application.
- Environment Variables: If your application requires any environment variables, you can set them here.
- Secrets: If your application requires sensitive information, you can use secrets to manage them securely.
- Network Mode: Choose the appropriate network mode for your application. The available options are:
- Host Networking: Expose the host to the mesh.
- Bridge Networking: Isolate the agent from the host.
- Pause Container: Expose containers, not the host.
- Access Groups: Add the device to access groups to control which devices can communicate with your application.
- Deployment Target: Choose the devices or groups of devices where you want to deploy your application.
Your apps will be deployed to the devices you selected, and you can monitor their status from the dashboard.