diff --git a/docs/2-local-development/developing-locally-docker.rst b/docs/2-local-development/developing-locally-docker.rst index 05e188e527..9b84abb841 100644 --- a/docs/2-local-development/developing-locally-docker.rst +++ b/docs/2-local-development/developing-locally-docker.rst @@ -242,6 +242,31 @@ The stack comes with a dedicated node service to build the static assets, watch .. _Sass: https://sass-lang.com/ .. _live reloading: https://browsersync.io + +Using Just for Docker Commands +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +We have included a ``justfile`` to simplify the use of frequent Docker commands for local development. Here are the available commands: + +- ``just build`` + Builds the Python image using the local Docker Compose file. + +- ``just up`` + Starts the containers in detached mode and removes orphaned containers. + +- ``just down`` + Stops the running containers. + +- ``just prune`` + Stops and removes containers along with their volumes. You can optionally pass an argument with the service name to prune a single container. + +- ``just logs`` + Shows container logs. You can optionally pass an argument with the service name to view logs for a specific service. + +- ``just manage `` + Runs Django management commands within the container. Replace ```` with any valid Django management command, such as ``migrate``, ``createsuperuser``, or ``shell``. + + (Optionally) Developing locally with HTTPS ------------------------------------------