23
44 Comments

Cheapest hosting for docker images?

I need hosting for my docker images that expose a few HTTP endpoints. I just need to be able to upload a docker-compose file and run it. Not much RAM nor storage nor CPUs.

AWS is asking for ~$11/mo for t2.small and changes the IP every time I restart the VM (I guess I'll also have to pay for elastic IP). There must be something else.

posted to Icon for group Developers
Developers
on November 6, 2021
  1. 9

    You can look at Render.com. Starts at $7/m.

      1. 3

        Wow, it's new pricing? I visited a few weeks ago and it doesn't have a free tier.

      2. 1

        Bummer. I need 2Gb RAM, they want $25/mo. Might be useful for landing pages though.

      3. 1

        Yes!! I heard this was coming!!

    1. 4

      Render has been flawless for my docker app (Hasura) and distributed Elixir app. Ditto for static and Rails.

    2. 4

      Big render fan! I run chime.so on it and it’s been going great

      1. 1

        Are you using standard or pro for chime.so?

        1. 1

          I’ve got things on a few different tiers. But my main app server is the starter plus tier.

  2. 1

    You might also like to check the following providers, as they offer affordable plans and server specs:
    1- Kamatera Cloud
    2- Vultr Cloud
    3- A2Hosting
    4- Docker
    5- Amazon AWS Cloud

    Thanks,
    Karl

  3. 3

    Try AWS Lightsail. you can deploy, run, and manage containers for as low as $5/month

  4. 3

    Depending on your needs you could look into running Dokku [1] on a VPS from a cheap provider such as DigitalOcean [2], Hetzner [3], or Vultr [4]. They offer instances from $5/mo, €4.15/mo, and $2.5/mo, respectively.

    [1] https://dokku.com/
    [2] https://www.digitalocean.com/
    [3] https://www.hetzner.com/
    [4] https://www.vultr.com

  5. 3

    Try Railway.app, it has a free tier ($5 credit usage/month) and pay-as-you-go pricing, also support Docker deployment like Heroku.

    Or Google Cloud Run

    1. 2

      This comment was deleted 2 years ago.

      1. 1

        Yeah, I've tried it for my side project. It is easy to spin PostgreSQL instances and app deployment without additional configuration.

  6. 2

    I like to render.com. If you want more control you can create a digital ocean droplet with dokku and manage your own containers it's pretty easy if you have some exp with like heroku.

  7. 2

    Ive been using Linode recently and really happy with it!, $5 /mo

  8. 2

    Just to point out, that EC2 instance would be free for the first year under AWS's free tier and the elastic IP would also be free.

    Depending on what these containers do you could also look at ECS Fargate or Lambda to run them. But neither would be great for perma or long-running tasks: Fargate can easily be more expensive than an EC2 instance if you have multiple tasks running constantly and Lambda is for short, sharp event-based processes with a 15min hard-stop (so can be good for REST APIs coupled with API Gateway).

    1. 1

      I just need to run an API call once or twice a week, but it has to be from a Web interface, so I can't run it on localhost.

      My free credits are long gone.

      1. 1

        Maybe you could expose your local service directly to the internet?

        https://ngrok.com/
        https://loophole.cloud/
        https://localhost.run/

  9. 2

    you get 2 1gb compute instances free on oracle cloud. best deal I found for hosting containerized MVPs for free.

  10. 2

    You can use AWS Lightsail and host docker images there for as low as 5 USD per month.
    Or if you can package this in a heroku env then use heroku free tier.

  11. 2

    What about https://fly.io? They've got a free tier that should cover you. Though I think you'll have to abandon docker-compose

    1. 1

      Do you mean I'll have to set up and orchestrate the images manually somehow?

      1. 1

        Yeah—you'll deploy each service in your compose file as an app on the fly platform. Your apps can communicate over a private network, for ex. you could set your main application's database URL to postgres://username:password@postgres_app_name.internal:5432

        fwiw, if this is too much hassle your next best option is probably to spin up Hetzner's (referral link) cheapest machine for €4.19/m and run your docker-compose file on there

        1. 2

          Yes, this is too much hassle indeed. Thanks for the Hetzner link!

        2. 1

          And it turned out that my docker app wants at least 2Gb RAM, so fly would be too expensive anyway.

    2. 1

      This is very cheap. Thanks!

  12. 2

    Microsoft Azure has recently released their new service Container Apps in preview. I think it will be a nice solution to your problem because you pay based on consumed cpu and memory and requests just like aws lambda. It is quite cheap to run small containers.
    https://azure.microsoft.com/en-us/services/container-apps/
    I have just deployed my first docker image to it and it works fine and I don't get a crazy bill .
    As for storing the docker images if they should be private there isn't much difference in price to storing them with docker hub, digital Ocean, azure or similar provider. I believe they all cost around 5 USD.

    1. 1

      Thanks, I tried to use Azure, but it required my own container as opposed to my requirement to use several publicly available containers via docker-compose. I'm not sure if it was the same service as you suggested here.

      1. 1

        You can use any container registry you like such as Docker hub with Container Apps. You don't deploy through docker-compose. You either manually deploy to it or set up a CI/CD pipeline.

  13. 2

    For a long time, https://phish.report was hosted on the smallest possible VM from https://www.hetzner.com (€4/month)

    Just take a VM, install Docker and then use the remote docker-compose trick to deploy: https://www.docker.com/blog/how-to-deploy-on-remote-docker-hosts-with-docker-compose/
    As long as you don't delete it, it'll keep the same IP.

    1. 2

      Thanks, Hetzner seems to be a winner in this thread!

  14. 1

    I've been pretty happy with Dokku on DigitalOcean. Servers start at around $5/mo, though admittedly I needed to upgrade pretty quick to a $10/mo server as RAM became a bottleneck pretty quickly.

    How are you serving the endpoints? Node.js and Express.js?

  15. 1

    Look at Google Cloud Run, you will be charged only for incoming requests and you will be ready for scaling from day 0

    https://cloud.google.com/run

  16. 1

    AWS lightsail is $3.50 / month.

  17. 1

    Why don't you tried discount sites if you looking for a cheap hosting? I suggest you to see https://mesheble.com/ if you found any discount there.

  18. 1

    I personally use DigitalOcean for all of my infrastructure and I am very happy with them.

    1. 1

      Do they provide a shell so that I could install docker support and run my docker-compose?

      1. 1

        Yes, with all of their servers you get root access and you can fully manage them and install any packages that you need to.

  19. 1

    You can tryout DO or Contabo

  20. 1

    Kamatera.com price is also cheap. They offered me lower price than all the other options provided here.

  21. 1

    If you are actually using your Elastic IP, you would not get charged for it - see https://aws.amazon.com/premiumsupport/knowledge-center/elastic-ip-charges/.

    That being said, unless you need some of the other AWS services, it would be cheaper for you to use some of the low-cost VPS services of other providers, such as DigitalOcean, Vultr, Hetzner, etc.

  22. 1

    This comment was deleted 4 years ago.

Trending on Indie Hackers
I spent $0 on marketing and got 1,200 website visitors - Here's my exact playbook User Avatar 70 comments Veo 3.1 vs Sora 2: AI Video Generation in 2025 🎬🤖 User Avatar 31 comments I built eSIMKitStore — helping travelers stay online with instant QR-based eSIMs 🌍 User Avatar 21 comments 🚀 Get Your Brand Featured on FaceSeek User Avatar 20 comments Solo SaaS Founders Don’t Need More Hours....They Need This User Avatar 17 comments Day 6 - Slow days as a solo founder User Avatar 16 comments