This application uses Docker Compose for managing its services. This document
provides instructions on how to set up, run, and manage the application using
the provided Makefile.
Ensure the following software is installed on your system:
- Docker
- Docker Compose
- Make
- Node (Recommended LTS Version) To verify if Node.js is installed run:
node --versionIf not installed, download if from the official Node.js Website or install it using packaged manager of your choice.
The Makefile provided simplifies common Docker Compose commands. Below is a guide on how to use it.
To start the application and its associated services:
make upmake stopmake downmake buildmake logsmake cleanmake check-syntaxmake help-
All commands are aliases for
docker-composecommands, so feel free to use Docker Compose directly if preffered -
Ensure Docker and Docker Compose are propertly installed and running before using the above commands
This application provides a nix configuration (flake.nix, shell.nix and .envrc)
for setting up a reproducable development environment. While nix is not
required, it can signifantly simplify dependency management and development
setup.
-
Install Nix Follow the instructions here to install
nixon you machine -
Enable Direnv If you have
direnvinstalled, the.envrcfile will automatically load thenixshell when you navigate to the project directory- Install
.direnvfrom direnv.net - Allow the .envrc file in the project directory
direnv allow
- Install
-
Activate the nix Shell Manually If you prefer not to use
direnv, activate the nix shell manually by running:nix develop
-
Run Commands in the
nixEnvironment Once the shell is active, all required dependencies for the project will be available. You can then proceed to usemake,docker-compose,ornpmcommands as usual.