Conduit Container
Task
Run the existing Conduit frontend and backend with PostgreSQL as one documented Docker Compose stack. The frontend and backend came from separate academy repositories.
Problem
The three services needed compatible images, a shared network, browser-reachable application ports, and persistent database storage. Configuration had to remain usable across local and VPS hosts without committing credentials.
Approach
- Include the Angular frontend and Django backend as pinned Git submodules. Build separate multi-stage images: Nginx serves the compiled frontend, and Gunicorn runs the backend.
- Connect the services through Compose. Publish the frontend and backend ports, keep PostgreSQL internal, and wait for its healthcheck before starting the backend.
- Keep credentials in local
.envfiles and PostgreSQL data in a named volume. Remove tracked log exports and document the backend configuration template. - Document setup, operation, and validation in the container project README.
Solution
Docker Compose brings the Angular frontend, Django backend, and PostgreSQL database together in one stack. Separate images package the application services, a database healthcheck controls backend startup, and a named volume retains PostgreSQL data. Pinned submodules identify the application source versions used for the build. Automated delivery is described in the separate Conduit Deployment report.
Evidence
- Container setup guide — setup, operation, and validation.
- Compose configuration — the three services, network, healthcheck, and database volume.
- Container implementation — the application images, service configuration, and documentation changes.