luke.b//blog

Good thing this isn’t a film review blog, otherwise I’d have to criticise things with depth or something.

Just watched “Birdman” - it was fantastic. I love a decent film with so many layers to it you can feel it in your bones.

Fixed! Finally, only my external nginx server uses HTTPS, proxying to an internal one that only does HTTP. Also I fixed a redirect bug that meant that locations visited without a trailing slash would respond with a 301 to http://.../ - notice the trailing slash. After that, the external nginx would send a 301 to https://.../.

WTF isn’t docker -d the default? Like why would I want to up my server and then randomly kill it a few moments later??

In other news, I hosted a virtual birthday party for meeee and it went very well I think. Some people struggled to get a stable connection so they left a bit early, but we’ll do something IRL to make up for it anyway.

I’m feeling like my birthday was a great success. Feeling very lucky to have the friends and family that I have :)

Ok. So I tried to do two things at once earlier:

  • migrate to dockerised deployment
  • remove TLS from internal nginx

One of those things was successful. The other failed, and my site was down for several hours.

Tomorrow I will figure out how to only do TLS on the external nginx. For now, at least my site is up again. ffs.

Cool, so all of my apps are now built inside docker containers and the built static files are shared via docker volumes with the internal nginx container, which no longer does ssl and is no longer externally exposed.

Great success.

Now I just need to update all of the build.sh scripts such that docker compose restarts the services that have changes.

I’ve finally got my personal site built using a parcel docker image that mounts the built files into a volume to be shared with the nginx container. This was after multiple occasions of me typing “src” instead of “srv”…

Anyway, it works now and with a bit of tweaking I can do the same to all of my parcel apps so that they can all be rebuilt using docker. Then I will update their build.sh to “up” each respective docker-compose service and it should be good to go.

Then I should probably uninstall hugo, yarn etc. from my server.

For my birthday I am giving myself the gift of dockerising my deployment infrastructure 🎁

So far I have figured out the changes I will need to make this happen.

Static apps are built into a collection of static files for serving via a web server:

  • changes pushed to remote git repo
  • build.sh file will rebuild docker container via docker-compose up
  • built files are written to the mounted “www” volume
  • nginx container will serve the “www” volume

I really want to make a mailing list app so that I can send emails to people when I write a blog.

But first I want to figure out getting my blog built using a dockerfile. I think I want to get it working locally before I even attempt running it on the server otherwise it’s going to be frustrating as.

page 18 of 27 after before