Why Use Edge Containers for Your App
Edge containers let you run any container image close to your visitors in 27 cities across Europe and North America. Instead of renting a server and keeping it patched, you bring your image, pick a plan and regions, and your app goes live. That is the whole idea: no server to set up, no operating system to update, no midnight security alerts.
Each plan includes a free HTTPS address, custom domains with automatic certificates, and a usage guard. The usage guard tells you at 80% of your plan's allowance, so you never get a surprise bill. You pay by the hour, and you never pay more than the plan's monthly price.
What You Can Run
You can run almost anything that listens on a port. A REST API, a small web app, a background worker, a static site, a game server. If you can build it into a container image, edge containers can run it. Public images from Docker Hub or GitHub Container Registry work out of the box. Private images from your Phluit Container Registry connect in one click.
For example, you could take the official nginx image, add your static files, and serve them from a custom domain in minutes. Or you could deploy a Node.js API that talks to a managed database. The Edge Containers page has the full list of what is included.
Before You Start: What You Need
You need three things before you deploy.
First, a Phluit account. You can create one at the portal, and you only pay for what you use, by the hour.
Second, a container image. It can be public, like nginx:1.27 from Docker Hub, or private, like ghcr.io/you/app:v1. If it is private, make sure you have a token that can pull it. The Docker documentation is a good place to learn how to build and tag images if you are new to containers.
Third, a domain name you own. It can be registered through Phluit's Domain Registration service or through any other registrar. You just need access to your DNS settings to point the domain to your container.
Choosing a Plan
Plans start at $4 a month for Edge Container XS. That includes one copy, 25 GB of traffic, and no disk. Edge Container S is $8 a month with 50 GB of traffic. Edge Container M is $16 a month and adds a 5 GB disk that keeps files across restarts. Edge Container L is $32 a month with two copies and a 10 GB disk. Edge Container XL is $64 a month with three copies and a 20 GB disk.
Pick the smallest plan that fits your expected traffic. You can move to a bigger plan later without redeploying.
Deploy Your Container to Edge Containers
Deploying takes about five minutes. Here is how to do it, step by step.
- Go to the portal and open the containers section.
- Click "New container."
- Enter your image name. For a public image, just type it, like
nginx:1.27. For a private image, connect your registry first. - The portal checks that the image exists and suggests the port it listens on. Confirm or change the port.
- Choose your plan.
- Pick one or more regions. You can select several cities at once, and each visitor reaches the nearest one.
- Set environment variables and secrets. Secrets are encrypted and never shown again.
- Configure a health check if your app supports one. An HTTP or TCP check makes sure a new version only takes traffic once it answers.
- Click deploy.
You get a free HTTPS address immediately, like https://your-container.phluit.app. You can visit that address right away to test your app.
For a more detailed walkthrough, see How do I deploy a container?. You can also read our earlier post on How to Deploy a Docker Container in 5 Minutes with Edge Containers.
Using a Private Image
If your image is private, you have two options. The easiest is to push it to your Phluit Container Registry. The registry connects to Edge Containers in one click with a read-only token. No extra setup.
Or you can use a token from Docker Hub, GitHub, or any other registry. Enter your username and a token that can pull the image. The portal stores it securely and uses it for every deploy.
Add Your Custom Domain
Once your container is running, you want your own domain on it. The process is simple.
- On your container's page, find the "Domains" section.
- Click "Add domain" and type your domain, like
app.example.com. - The portal shows you the address to point your domain to. It will be an A record or a CNAME, depending on your setup.
- Go to your DNS provider and add the record.
- Wait for DNS to propagate. This can take a few minutes or up to a few hours.
Phluit automatically sets up the SSL certificate once DNS points correctly. You do not have to install anything.
You can add multiple domains or subdomains. For example, you could point both app.example.com and staging.example.com to the same container.
For the full details, see How do I use my own domain with a container?.
DNS Settings Explained
An A record maps a domain to an IPv4 address. A CNAME maps a domain to another domain name. The portal tells you which one to use based on your container's setup.
If you are not sure how to change DNS records, check your registrar's help pages. Most registrars have a simple form where you add a record type, a name, and a value. The value is the address shown on your container's page.
Verify and Go Live
After you add your domain and update DNS, verify that everything works.
- Visit your custom domain in a browser. You should see your app.
- Check that the padlock icon appears in the address bar. That means the SSL certificate is active.
- If you see a certificate warning, wait a bit longer for DNS to propagate and try again.
You can also monitor usage in the portal. You get an alert at 80% of your plan's allowance, so you have time to upgrade before anything stops.
Troubleshooting DNS
If your domain does not load, check these things in order.
First, confirm the DNS record is correct. Use a tool like dig or an online DNS checker to see what your domain resolves to.
Second, wait longer. DNS changes can take up to 48 hours, though they usually propagate much faster.
Third, make sure you added the domain on the container's page. The portal only issues certificates for domains you have added.
If it still does not work, open a ticket from the portal. The support team answers 24/7.
Next Steps: Scale and Automate
Once your container is live with your custom domain, you can think about scaling and automation.
Add more regions as your traffic grows. In the regions the customer chooses: 27 cities in Europe and North America, one region or several at once; up to 10 copies in each region start when traffic grows. You can add regions from the container's page at any time.
Set up a deploy hook to update your container automatically from GitHub Actions. A deploy hook is a secret address. One curl command in your CI pipeline deploys every new tag. That means you push to GitHub, and your container updates itself.
Consider a public IP if you run TCP or UDP workloads, like game servers or MQTT. The public IP add-on costs $4 a month and gives your container its own IPv4 address.
Automating Deploys
Here is a minimal GitHub Actions step that deploys a new tag:
- name: Deploy to Edge Containers
run: curl -X POST https://deploy.phluit.com/hooks/your-secret-hook
You can add this after your build step. Every time you push a new tag, the container pulls the new image and rolls it out.
If your app needs a disk, remember that a container with a disk runs in one region. The disk is not backed up, so keep data you cannot lose in a managed database or object storage.
Edge Containers, AirLift, or a VM?
If you already have a container image, Edge Containers is the fastest way to run it close to your users. AirLift is Phluit's managed app hosting that builds from Git or container images and runs with HTTPS. It is a good fit when you want to deploy straight from a repository. A second app or a separate worker can be run with AirLift, or you can deploy multiple components in one app. Managed VMs give you root access and a disk of your own if you need full control.
Frequently asked questions
How do I connect a custom domain to my Edge Container?
Add the domain on the container's page, point it to the address shown, and the certificate is set up automatically. The portal shows you exactly which DNS record to add.
Can I use a domain from another registrar with Edge Containers?
Yes, you can use any domain you own. Point its DNS to the address shown on the container's page. The registrar does not matter.
Does Phluit provide an SSL certificate for my custom domain?
Yes, Phluit automatically sets up the SSL certificate when you add the domain and DNS points correctly. You do not need to buy or install a certificate yourself.
What if my container uses a private image?
Connect your Phluit Container Registry in one click, or use Docker Hub or GitHub with a token that can pull. The portal stores the token securely and uses it for every deploy.
Edge containers take the server out of your hands so you can focus on your app. You bring the image, pick your regions, add your domain, and you are live. The usage guard keeps costs predictable, and the deploy hook makes updates a one-line command.
Try it with your next project. Deploy your first Edge Container now and connect your domain in minutes.
