ProjectBuild a Permission-Aware Knowledge Hub as an MCP Server: the explanation · Module 19: Containers and the local stack · part 21 of 22
Part 21 · Module 19: Containers and the local stack
Module 19: Containers and the local stack
23 min read·
About 40 minutes · Needs: Module 4 (the high-level architecture), Module 8 (the embedding model), Module 18 (X-Forwarded-For and trusted proxies) · Code: server/Dockerfile, server/Dockerfile.dockerignore, server/docker-entrypoint.sh, console/Dockerfile, console/nginx.conf.template, docker-compose.yml, .env.example, Makefile
Where this fits
The parts this module packs and starts (blue, the embedding model amber): the containers, nginx as the front door, Postgres with pgvector, the baked-in model and the baked-in seed company.
Every earlier module described code. This one packs that code into containers so one command starts the whole system on a laptop: the database with pgvector, the server with its embedding model and the fictional company baked in, and nginx serving the console and proxying everything else. The same two images are what the cloud deploy in Module 20 runs.
The rest of this project is yours to keep
This project is bought on its own, once, and stays readable afterwards, including the parts added to it later.