Run the containers with the systemd configuration, 1:1
The containers now read the unchanged .env of the matching systemd instance (/home/llmadmin/mindnet_dev/.env, /home/llmadmin/mindnet/.env) and use the same Qdrant, Ollama, vault and collection prefix, so both can be compared side by side. Only container-specific values are overridden: host service addresses (host.docker.internal instead of 127.0.0.1) and the read-only vault. - deploy/appenv.py derives the vault mount and prefix from that .env and rejects application keys in the container-only file. - Remove the separate dev Qdrant, the synthetic test vault and the import step. - UI binds 0.0.0.0 like systemd; API stays loopback by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eae30775e3
commit
6cdad8b046
20 files changed
+373
-415
No files matched your search
@@ -22,9 +22,14 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
# Runner auf dem Zielhost (heute llm-node). Bei einem Umzug auf einen anderen
|
||||
# Mini-PC nur das Label und die beiden Pfade anpassen.
|
||||
runs-on: linux_host
|
||||
env:
|
||||
MINDNET_ENV_FILE: /home/llmadmin/docker/mindnet/prod.env
|
||||
# Unveränderte Konfiguration der systemd-Prod-Instanz.
|
||||
MINDNET_APP_ENV_FILE: /home/llmadmin/mindnet/.env
|
||||
# Nur Container-Angaben (Vorlage: deploy/env/prod.env.example).
|
||||
MINDNET_ENV_FILE: /home/llmadmin/docker/mindnet/container.env
|
||||
steps:
|
||||
# Ohne actions/checkout: kein Abruf von github.com (DNS/Internet auf dem Host
|
||||
# nicht nötig). Holt genau den Commit des Pushes vom eigenen Gitea, mit Job-Token.
|
||||
@@ -32,10 +37,22 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git init -q .
|
||||
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 "${{ github.server_url }}/${{ github.repository }}.git" "${{ github.sha }}"
|
||||
git -c http.extraHeader="Authorization: token ${{ github.token }}" \
|
||||
fetch -q --depth 1 "${{ github.server_url }}/${{ github.repository }}.git" "${{ github.sha }}"
|
||||
git checkout -q --force FETCH_HEAD
|
||||
git clean -q -ffdx
|
||||
git log -1 --format='Checkout %H %s'
|
||||
|
||||
- name: Container-Datei beim ersten Lauf anlegen
|
||||
run: |
|
||||
set -euo pipefail
|
||||
install -d -m 0750 "$(dirname "$MINDNET_ENV_FILE")"
|
||||
if [ ! -f "$MINDNET_ENV_FILE" ]; then
|
||||
install -m 0600 deploy/env/prod.env.example "$MINDNET_ENV_FILE"
|
||||
echo "Container-Datei aus Vorlage angelegt: $MINDNET_ENV_FILE"
|
||||
fi
|
||||
docker version --format 'Docker {{.Server.Version}}'
|
||||
docker compose version
|
||||
|
||||
- name: Test, Build, Preflight, Start, Smoke (Rollback bei Fehler)
|
||||
run: bash deploy/deploy.sh prod
|
||||
Reference in new issue
Block a user