Custom Deployment
A Custom Deployment allows you to deploy your own Docker images, such as frontend applications, on the SettleMint platform. This feature provides flexibility for integrating custom solutions within your blockchain-based applications.
Create a Custom Deployment
To create a Custom Deployment on the SettleMint platform, follow these steps:
- Prepare your container image and push it to a container registry (public or private).
- In the SettleMint platform, navigate to the Custom Deployments section.
- Click on the "Add Custom Deployment" button to create a new deployment.
- Provide the necessary details:
- Container image path (e.g., registry.example.com/my-app:latest)
- Container registry credentials (if using a private registry)
- Environment variables (if required)
- Custom domain information (if applicable)
- Configure any additional settings as needed.
- Click on 'Confirm' and wait for the Custom Deployment to be in the Running status. View the list of statuses.
DNS Configuration for Custom Domains
When using custom domains with your Custom Deployment, you'll need to configure your DNS settings correctly. Here's how to set it up:
-
Add Custom Domain to the SettleMint Platform:
- Navigate to your Custom Deployment in the SettleMint platform.
- In the manage custom deployment menu, click on the edit custom deployment action.
- Locate the custom domains configuration section.
- Enter your desired custom domain (e.g., example.com for top-level domain or app.example.com for subdomain).
- Save the changes to update your Custom Deployment settings.
-
Obtain Your Application's Hostname: After adding your custom domain, the SettleMint platform will provide you with an ALIAS (for top-level domains) or CNAME (for subdomains) record. This can be found in the "Connect" tab of your Custom Deployment.
-
Access Your Domain's DNS Settings: Log in to your domain registrar or DNS provider's control panel.
-
Configure DNS Records:
For Top-Level Domains (e.g., example.com):
- Remove any existing A and AAAA records for the domain you're configuring.
- Remove any existing A and AAAA records for the www domain (e.g., www.example.com) if you're using it.
- Create ALIAS records pointing your custom domain to the provided hostname.
- Example:
ALIAS example.com gke-europe.settlemint.com
andALIAS www.example.com gke-europe.settlemint.com
For Subdomains (e.g., app.example.com):
- Create a CNAME record pointing your subdomain to the provided hostname.
- Example:
CNAME app.example.com gke-europe.settlemint.com
-
Set TTL (Time to Live):
- Set a lower TTL (e.g., 300 seconds) initially to allow for quicker propagation.
- You can increase it later for better caching (e.g., 3600 seconds).
-
Verify DNS Propagation:
- Use online DNS lookup tools to check if your DNS changes have propagated.
- Note that DNS propagation can take up to 48 hours, although it's often much quicker.
-
SSL/TLS Configuration:
- The SettleMint platform typically handles SSL/TLS certificates automatically for both top-level domains and subdomains.
- If you need to use your own certificates, please contact us for assistance and further instructions.
Note: The configuration process is similar for both top-level domains and subdomains. The main difference lies in the type of DNS record you create (ALIAS for top-level domains, CNAME for subdomains) and whether you need to remove existing records.
Limitations and Considerations
When using Custom Deployment, keep the following limitations in mind:
-
No Root User Privileges: Your application will run without root user privileges for security reasons.
-
Read-Only Filesystem: The filesystem is read-only. For data persistence, consider using:
- Hasura: A GraphQL engine that provides a scalable database solution. See Backend-as-a-service documentation.
- Other External Services: Depending on your specific needs, you may use other cloud-based storage or database services.
-
Stateless Applications: Your applications should be designed to be stateless. This ensures better scalability and reliability in a cloud environment.
-
Use AMD-based Images: Currently, our platform supports AMD-based container images. Ensure your Docker images are built for AMD architecture to guarantee smooth compatibility with our infrastructure.
Best Practices
- Design your applications to be stateless and horizontally scalable.
- Use environment variables for configuration to make your deployments more flexible.
- Implement proper logging to facilitate debugging and monitoring.
- Regularly update your container images to include the latest security patches.
Custom Deployment offers a powerful way to extend the capabilities of your blockchain solutions on the SettleMint platform. By following these guidelines and best practices, you can seamlessly integrate your custom applications into your blockchain ecosystem.