little-aspnetcore-book icon indicating copy to clipboard operation
little-aspnetcore-book copied to clipboard

Publish to DigitalOcean with Docker

Open nbarbettini opened this issue 7 years ago • 4 comments

The Docker section in the deployment chapter shows you how to use docker compose and set up two containers (nginx and kestrel). It stops short of actually showing you how to deploy that multi-container application, though.

It should:

  • [ ] Point to existing DigitalOcean guide for setting up a Docker host
  • [ ] Describe how to push the built Docker image to Docker Hub
  • [ ] Explain how to spin up a multi-container app on the DigitalOcean VM (probably just docker compose up)

nbarbettini avatar Sep 28 '17 11:09 nbarbettini

Minor comment Nate...

I came across Vultr recently, and they seem to be similar to to Digital Ocean except that they offer the VM's for half the price, at $2.50/mo for the 500MB and $5/mo for the 1GB. If the goal is to keep the platform inexpensive for users to tinker with, perhaps we should consider using Vultr for the "Docker on VM" example? To play devil's advocate, I do find Digital Ocean has amazing tutorials, so maybe it's best to stick with them for directing readers.

mattwelke avatar Nov 26 '17 03:11 mattwelke

Interesting, I hadn't heard of them. We could definitely mention them. Probably worth making it super clear that any cheap VM or container host will work just fine! That way the book isn't dating itself too badly as these keep racing to the $ floor.

I originally chose DO for the same reason you pointed out - they have really top-notch tutorials. From a lazy author POV, it's nice to be able to say "google: digitalocean docker setup" and not duplicate all that work. 😄

nbarbettini avatar Nov 27 '17 16:11 nbarbettini

DigitalOcean just announced a price drop which brings them in line with Linode and Vultr. Definitely worth keeping them the focus for the Docker deploy content.

mattwelke avatar Jan 17 '18 18:01 mattwelke

I think a useful addition would also be to go over publishing the db to a service like DigitalOcean, either by setting up a MySQL database or even by pushing the SQLite3 db to the service.

patricknasralla avatar Jun 28 '18 14:06 patricknasralla