Makefile: SERVICE-Variable fuer docker compose restart

CONTAINER = container_name (fuer logs/exec/ps)
SERVICE   = compose-Service-Name (fuer restart)
War bisher gleich gesetzt, aber compose und container haben
unterschiedliche Namen (banyaro vs ban-yaro).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rene 2026-04-12 17:58:32 +02:00
parent 472e0dd63f
commit ea670310e2

View file

@ -9,7 +9,8 @@ DS_IP := 10.47.11.10
# Hinweis: NPM braucht 10.47.11.99 als Forward-IP (Macvlan-Shim), nicht .10
DS_SSH_PORT := 22
DS_PATH := /volume1/docker/ban-yaro
CONTAINER := ban-yaro
CONTAINER := ban-yaro # container_name (für docker logs/exec)
SERVICE := banyaro # service-name in docker-compose.yml (für docker compose restart)
GIT_REMOTE := origin
DOCKER := sudo /usr/local/bin/docker
@ -107,7 +108,7 @@ push:
restart: check-ssh
@ssh $(DS_HOST) " \
cd $(DS_PATH) && \
$(DOCKER) compose restart $(CONTAINER)"
$(DOCKER) compose restart $(SERVICE)"
@echo " ✓ Neugestartet."
# ----------------------------------------------------------