From 16a13ed277fb25b018757fd59c9a1ca2ec94c8f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Mon, 12 Jan 2026 07:43:24 +0100 Subject: [PATCH] Prototype2.4_Docker_mirror --- install.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 90ac377..806feb8 100755 --- a/install.sh +++ b/install.sh @@ -37,6 +37,7 @@ EOF # Defaults APT_PROXY="http://192.168.45.2:3142" +DOCKER_REGISTRY_MIRROR="http://192.168.45.2:5000" CTID="" CORES="4" MEMORY="4096" @@ -193,8 +194,10 @@ info "Step 6: Provisioning im CT (Docker + Locales + Base)" if [[ -n "${APT_PROXY}" ]]; then pct_exec "${CTID}" "cat > /etc/apt/apt.conf.d/00aptproxy <<'EOF' Acquire::http::Proxy \"${APT_PROXY}\"; -Acquire::https::Proxy \"DIRECT\"; +#Acquire::https::Proxy \"DIRECT\"; +Acquire::https::Proxy \"${APT_PROXY}\"; EOF" + pct_exec "$CTID" "apt-config dump | grep -i proxy || true" fi # Minimal base packages @@ -221,6 +224,8 @@ pct_exec "${CTID}" "mkdir -p /opt/customer-stack/volumes/postgres/data /opt/cust # IMPORTANT: n8n runs as node (uid 1000) => fix permissions pct_exec "${CTID}" "chown -R 1000:1000 /opt/customer-stack/volumes/n8n-data" + + info "Step 6 OK: Docker + Compose Plugin installiert, Locales gesetzt, Basis-Verzeichnisse erstellt" info "Next: Schritt 7 (finales docker-compose + Secrets + n8n/supabase up + Healthchecks)" @@ -348,6 +353,21 @@ YML # Make sure permissions are correct (again, after file writes) pct_exec "${CTID}" "chown -R 1000:1000 /opt/customer-stack/volumes/n8n-data" +# Proxy +if [[ -n "${APT_PROXY}" ]]; then +pct_exec "$CTID" "mkdir -p /etc/docker" + +pct_exec "$CTID" "cat > /etc/docker/daemon.json <