Company
Date Published
Author
Chris Howe-Jones
Word count
5699
Language
English
Hacker News points
None

Summary

This blog post is the second in a three-part series detailing the process of building, testing, and deploying a Clojure web application. It focuses on integrating a production-level PostgreSQL database into the application, packaging it as a Docker instance, and running both the application and database within Docker. The article provides a step-by-step guide on setting up the necessary prerequisites, such as Java JDK, Leiningen, Git, Docker, Docker Compose, and various accounts like CircleCI, GitHub, and Docker Hub. The post explains how to configure the application for production by modifying project files and using Docker commands to run and connect the application with PostgreSQL. Additionally, it covers creating a Dockerfile and Docker Compose file to facilitate the application's deployment within a Docker environment and ensure data persistence. The article concludes with instructions on pushing the Docker image to Docker Hub and automating this process using CircleCI, including setting up jobs and workflows to manage the continuous integration and delivery pipeline.