Skip to content

Latest commit

 

History

History
162 lines (102 loc) · 1.58 KB

MAKE.md

File metadata and controls

162 lines (102 loc) · 1.58 KB

Makefile Guide

This project uses Make as a convenient wrapper around Docker Compose.

Make is not mandatory, but it makes daily work faster and less error-prone.


Why Make?

Instead of typing:

docker compose build
docker compose up -d
docker compose logs -f

You can simply type:

make run
make logs

Available Commands

make run

Builds the image (if needed) and starts the bot.

make run

Equivalent to:

docker compose build
docker compose up -d

make build

Build Docker images:

make build

make build-no-cache

Build images without cache (useful if dependencies changed):

make build-no-cache

make up

Start containers without rebuilding:

make up

make stop

Stop running containers:

make stop

make down

Stop and remove containers (keeps database and logs):

make down

make restart

Restart containers:

make restart

make rebuild

Full rebuild + restart:

make rebuild

This runs:

  1. docker compose down
  2. docker compose build --no-cache
  3. docker compose up -d

make logs

Follow logs in real time:

make logs

Requirements

  • GNU Make
  • Docker
  • Docker Compose v2

Installing Make

Linux:

Debian / Ubuntu:

sudo apt install make

Arch Linux:

sudo pacman -S make

macOS (brew):

brew install make

Windows:

  • Use WSL (recommended)
  • Or install Make via Chocolatey / Scoop