DEV Community

Discussion on: How is your portfolio built?

Collapse
 
willvincent profile image
Will Vincent • Edited

No portfolio, hasn't been necessary for my career.

I do however have a blog, that used to be Drupal from which I migrated to Ghost. It (like all other things on my server) runs in a docker container, and sits behind another docker container running lightify, which in turn sits behind another container running traefik.

I don't post very often.. keep telling myself I should do more, but it's not a high priority really.

willvincent.com

Collapse
 
iam_timsmith profile image
Tim Smith

Interesting. I've only dabbled in docker. That sounds intense. I like the site though. It really feels like a magazine or something.

Collapse
 
willvincent profile image
Will Vincent

Thanks.. It's mostly the default ghost theme, just tweaked a couple small things here and there.

Traefik makes everything really pretty trivial.. it is the first point of contact for basically everything hitting the server, at least http[s] wise, though it will happily handle basically any other protocol too.

The individual docker hosts behind it use internal ports and routing, that traefik does reverse proxy for..

So you can stand up a nodejs service on port 3000, for example, and expose that as a subdomain or whatever, like: foo.example.com Traefik will handle grabbing an ssl cert for you, automagically from letsencrypt, and internally route traffic coming in on port 443 for that domain to that container.

It's like vhosts, turned up to 11. :)

Cool thing about traefik is you can also attach things to specific routes so if you had main site running wordpress as mysite.com and wanted to setup a magento store, for example, you could just as easily expose it at mysite.com/store as at store.mysite.com ... pretty cool.

Thread Thread
 
iam_timsmith profile image
Tim Smith

I'll definitely have to look into these technologies more. Thanks for all the info!

Thread Thread
 
jackharner profile image
Jack Harner πŸš€

Wow. I haven't played with Docker all that much, but that sounds super interesting. If I had a dollar for every time I screwed up some virtual host config...

Definitely going to dive deeper, especially since I'm playing more with Node/JS