diff --git a/CHANGELOG.md b/CHANGELOG.md index d91e78b..a417880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - **Custom TLS certificates** - Support for corporate/internal certificates via `caddy-addon/` mechanism +- New `make stop` and `make start` commands for stopping/starting all services without restart - New `make setup-tls` command and `scripts/setup_custom_tls.sh` helper script for easy certificate configuration - New `make git-pull` command for fork workflows - merges from upstream instead of hard reset diff --git a/CLAUDE.md b/CLAUDE.md index e25d126..ef9ba85 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -75,6 +75,8 @@ make logs s= # View logs for specific service make status # Show container status make monitor # Live CPU/memory monitoring (docker stats) make restart # Restart all services +make stop # Stop all services +make start # Start all services make show-restarts # Show restart count per container make doctor # Run system diagnostics (DNS, SSL, containers, disk, memory) make import # Import n8n workflows from backup diff --git a/Makefile b/Makefile index 5ddc1de..e9a1607 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help install update update-preview git-pull clean clean-all logs status monitor restart show-restarts doctor switch-beta switch-stable import setup-tls +.PHONY: help install update update-preview git-pull clean clean-all logs status monitor restart stop start show-restarts doctor switch-beta switch-stable import setup-tls PROJECT_NAME := localai @@ -17,6 +17,8 @@ help: @echo " make status Show container status" @echo " make monitor Live CPU/memory monitoring" @echo " make restart Restart all services" + @echo " make stop Stop all services" + @echo " make start Start all services" @echo " make show-restarts Show restart count per container" @echo " make doctor Run system diagnostics" @echo " make import Import n8n workflows from backup" @@ -63,6 +65,12 @@ monitor: restart: bash ./scripts/restart.sh +stop: + docker compose -p $(PROJECT_NAME) stop + +start: + docker compose -p $(PROJECT_NAME) start + show-restarts: @docker ps -q | while read id; do \ name=$$(docker inspect --format '{{.Name}}' $$id | sed 's/^\/\(.*\)/\1/'); \ diff --git a/README.md b/README.md index 18f9444..a1d8ee4 100644 --- a/README.md +++ b/README.md @@ -318,6 +318,8 @@ The project includes a Makefile for simplified command execution: | `make status` | Show container status | | `make monitor` | Live CPU/memory monitoring | | `make restart` | Restart all services | +| `make stop` | Stop all services | +| `make start` | Start all services | | `make show-restarts` | Show restart count per container | | `make import` | Import n8n workflows from backup | | `make import n=10` | Import first N workflows only | diff --git a/welcome/app.js b/welcome/app.js index acce195..c162bd8 100644 --- a/welcome/app.js +++ b/welcome/app.js @@ -415,6 +415,8 @@ { cmd: 'make logs s=', desc: 'View logs for specific service' }, { cmd: 'make monitor', desc: 'Live CPU/memory monitoring' }, { cmd: 'make restart', desc: 'Restart all services' }, + { cmd: 'make stop', desc: 'Stop all services' }, + { cmd: 'make start', desc: 'Start all services' }, { cmd: 'make show-restarts', desc: 'Show restart count per container' }, { cmd: 'make doctor', desc: 'Run system diagnostics' }, { cmd: 'make update', desc: 'Update system and services' },