I'm thinking of creating a website and l'm thinking of using docker in the process. How do I use it in the creation of my website ?
from Docker@lemmy.world to programming@programming.dev on 19 May 04:38
https://lemmy.world/post/29882529

#programming

threaded - newest

Zenlix@lemm.ee on 19 May 05:14 next collapse

Depends. What should docker do for you?

XM34@feddit.org on 19 May 05:50 next collapse

Docker is (simplified) a VM built from a single file. You can use it to host your website on a server that runs a docker daemon (pretty much guarantied nowadays). But it won’t be useful in developing the website itself.

But seriously, this sounds so much like a ChatGPT promt, why didn’t you ask that in the first place.

verstra@programming.dev on 19 May 06:26 next collapse

I use docker to package and deploy my website. When it is compiled to HTML, I place it into a docker container that is based on nginx.

This container is now easily ported to production server and ran to serve the HTML over HTTP.

TheBeege@lemmy.world on 19 May 07:20 next collapse

I’ll give a more detailed answer.

Docker doesn’t help you in the development of the website. Docker helps you with the deployment of the website.

The purpose of Docker is to give you a consistent environment. When you create a Docker “image,” that image includes all of the files and software required to run the website. Then on some computer accessible by the public internet, you can just download that “image” and run your website using a “container” created from the image.

You can think of the image as the blueprint of all the bits and pieces needed to run your website. The container is basically all those pieces put into action to actually run the website.

Now, depending on your website, you may not even need Docker. If it’s frontend-only, you could use some service like Vercel, where you don’t even need Docker.

Can you share more info about your current level of knowledge and the website you want to make?

Docker@lemmy.world on 19 May 07:55 next collapse

Thank you very much 😊😊… That’s a very detailed and precise answer to my question.

Docker@lemmy.world on 19 May 07:59 collapse

I wish to create a website promoting a tourist destination in general, in relation to a particular homestay in that area.

TheBeege@lemmy.world on 19 May 08:58 collapse

Okay, but what’s your current level of web development knowledge?

And if I’m understanding your website properly, it seems like you don’t have any kind of user generated content, yes? And if there were updates to the site, you would just make them yourself? If this is the case, then it sounds like frontend-only, and you can probably just use Vercel. If you’re going super simple, maybe even Github Pages would work.

Alternatively, is there any reason you’re not using a site builder like Wix or Squarespace?

Docker@lemmy.world on 19 May 11:26 collapse

Honestly, l’m at level 0 as far as even coding is concerned. This l wish to promote a certain homestay, so GitHub pages takes the focus away. Updates l’ll do myself. However, a section on comments by the users would definitely add value.

I prefer to slog it out primarily to have some fun. I see it as if a child is painting purely out of his imagination 😊😊😊

MyNameIsRichard@lemmy.ml on 19 May 11:39 collapse

Have a look at this Udemy course, it teaches the HTML coding and website design. They have a sale on the moment too.

Docker@lemmy.world on 20 May 02:53 collapse

Thanks a lot for sharing this link 😃😃

And payable in my currency too😃😃😃

KindaABigDyl@programming.dev on 19 May 16:46 collapse

All you need is HTML, Javascript, and CSS