Wiki › Project

Dockerized Node.js service

Article
From Chaipat's knowledge graph

Dockerized Node.js service solves roadmap.sh's Dockerised service deployment challenge. The service is deliberately tiny: an Express app with a public / route and a /secret route protected by Basic Auth, whose username, password and message come from the environment. The point is everything around it.

Around the service

  • A Dockerfile that never builds secrets into the image; they are passed in when the container starts.
  • A GitHub Actions workflow that builds and deploys the image.
  • An iac folder with Terraform and Ansible, to create and configure the server it runs on.
  • A changelog, notes on generating SSH keys, and a small test script.

See also