Installeren: Docker Compose
Doel en resultaat
Section titled “Doel en resultaat”Voer de paginaspecifieke werkwijze uit voor Installeren: Docker Compose. Deze werkwijze gebruikt release/v26-beta · app/deploy/next/docker-compose.yml · app/deploy/next/.env.example · DISCVAULT_NEXT_IMAGE · ghcr.io/helmerznl/discvault:beta · 6180:5000 · LEGACY_AUTH_ENABLED=true.
Van toepassing op
Section titled “Van toepassing op”Deze pagina is uitsluitend van toepassing op Installeren: Docker Compose (Docker). De kanaal- en gegevensgrenzen zijn: DiscVault · ghcr.io/helmerznl/discvault:beta; release/v26-beta; discvault_next_deploy; 6180 → API 5000. Paginaspecifieke controlepunten: release/v26-beta · app/deploy/next/docker-compose.yml · app/deploy/next/.env.example · DISCVAULT_NEXT_IMAGE · ghcr.io/helmerznl/discvault:beta · 6180:5000 · LEGACY_AUTH_ENABLED=true.
DiscVault v26 bèta
Section titled “DiscVault v26 bèta”- DiscVault ·
ghcr.io/helmerznl/discvault:beta release/v26-betadiscvault_next_deploy6180→ API5000
Vereisten
Section titled “Vereisten”- Docker Compose
v2 - OpenSSL
- schrijfbare persistente opslag en vrije back-upruimte
Procedure
Section titled “Procedure”- Installeren:
docker-compose.yml·.env.example·release/v26-beta - Maken:
/opt/discvault-next/.env· bestandsrechten alleen voor eigenaar (0600) - Kiezen: houd bij een geldige FQDN
RP_IDenRP_ORIGINSgelijk en gebruik vertrouwde HTTPS · laat voor een direct privé- of loopback-IP zonder FQDNRP_IDenRP_ORIGINSleeg - Verifiëren:
DISCVAULT_NEXT_IMAGE=ghcr.io/helmerznl/discvault:beta·:dev - Uitvoeren:
docker compose -p discvault_next_deploy config --quiet - Testen:
GET http://localhost:6180/api/next/health
Opdrachten en instellingen
Section titled “Opdrachten en instellingen”DiscVault v26 bèta
Section titled “DiscVault v26 bèta”set -euo pipefailinstall -d -m 0700 /opt/discvault-nextcd /opt/discvault-nextcurl --fail --location --proto '=https' --tlsv1.2 \ --output docker-compose.yml \ https://raw.githubusercontent.com/helmerzNL/DiscVault/release/v26-beta/app/deploy/next/docker-compose.ymlcurl --fail --location --proto '=https' --tlsv1.2 \ --output .env.example \ https://raw.githubusercontent.com/helmerzNL/DiscVault/release/v26-beta/app/deploy/next/.env.example
umask 077ENV_FILE=/opt/discvault-next/.envtest ! -e "$ENV_FILE"ENV_TMP="$(mktemp "$ENV_FILE.tmp.XXXXXX")"trap 'rm -f "$ENV_TMP"' EXITPOSTGRES_PASSWORD="$(openssl rand -hex 32)"JWT_SECRET="$(openssl rand -base64 48)"awk \ -v image='ghcr.io/helmerznl/discvault:beta' \ -v postgres_password="$POSTGRES_PASSWORD" \ -v jwt_secret="$JWT_SECRET" \ -v data_dir='/mnt/user/appdata/discvault' \ -v postgres_dir='/mnt/user/appdata/discvault-next/postgres' ' /^DISCVAULT_NEXT_IMAGE=/ { print "DISCVAULT_NEXT_IMAGE=" image; next } /^POSTGRES_PASSWORD=/ { print "POSTGRES_PASSWORD=" postgres_password; next } /^JWT_SECRET=/ { print "JWT_SECRET=" jwt_secret; next } /^DISCVAULT_DATA_DIR=/ { print "DISCVAULT_DATA_DIR=" data_dir; next } /^DISCVAULT_NEXT_POSTGRES_DATA=/ { print "DISCVAULT_NEXT_POSTGRES_DATA=" postgres_dir next } /^LEGACY_AUTH_ENABLED=/ { print "LEGACY_AUTH_ENABLED=true"; next } { print }' .env.example > "$ENV_TMP"chmod 0600 "$ENV_TMP"ln "$ENV_TMP" "$ENV_FILE"rm -f "$ENV_TMP"trap - EXITset -euo pipefailcd /opt/discvault-nextFQDN=discvault.example.comENV_FILE=/opt/discvault-next/.envENV_TMP="$(mktemp "$ENV_FILE.tmp.XXXXXX")"trap 'rm -f "$ENV_TMP"' EXITawk -v rp_id="$FQDN" -v rp_origin="https://$FQDN" ' /^RP_ID=/ { print "RP_ID=" rp_id; next } /^RP_NAME=/ { print "RP_NAME=DiscVault"; next } /^RP_ORIGINS=/ { print "RP_ORIGINS=" rp_origin; next } /^LEGACY_AUTH_ENABLED=/ { print "LEGACY_AUTH_ENABLED=true"; next } { print }' "$ENV_FILE" > "$ENV_TMP"chmod 0600 "$ENV_TMP"mv "$ENV_TMP" "$ENV_FILE"trap - EXITset -euo pipefailcd /opt/discvault-nextENV_FILE=/opt/discvault-next/.envENV_TMP="$(mktemp "$ENV_FILE.tmp.XXXXXX")"trap 'rm -f "$ENV_TMP"' EXITawk ' /^RP_ID=/ { print "RP_ID="; next } /^RP_NAME=/ { print "RP_NAME=DiscVault"; next } /^RP_ORIGINS=/ { print "RP_ORIGINS="; next } /^LEGACY_AUTH_ENABLED=/ { print "LEGACY_AUTH_ENABLED=true"; next } { print }' "$ENV_FILE" > "$ENV_TMP"chmod 0600 "$ENV_TMP"mv "$ENV_TMP" "$ENV_FILE"trap - EXITset -euo pipefailcd /opt/discvault-nextENV_FILE=/opt/discvault-next/.envtest "$(stat -c '%a' "$ENV_FILE")" = 600read_env() { sed -n "s/^$1=//p" "$ENV_FILE"; }
test "$(read_env DISCVAULT_NEXT_IMAGE)" = 'ghcr.io/helmerznl/discvault:beta'! grep -q ':dev' "$ENV_FILE"test "$(read_env LEGACY_AUTH_ENABLED)" = truePOSTGRES_PASSWORD_VALUE="$(read_env POSTGRES_PASSWORD)"JWT_SECRET_VALUE="$(read_env JWT_SECRET)"test "${#POSTGRES_PASSWORD_VALUE}" -ge 32test "$POSTGRES_PASSWORD_VALUE" != 'change-me-to-a-long-random-password'test "${#JWT_SECRET_VALUE}" -ge 48grep -qx 'DISCVAULT_DATA_DIR=/mnt/user/appdata/discvault' "$ENV_FILE"grep -qx 'DISCVAULT_NEXT_POSTGRES_DATA=/mnt/user/appdata/discvault-next/postgres' "$ENV_FILE"
RP_ID_VALUE="$(read_env RP_ID)"RP_ORIGINS_VALUE="$(read_env RP_ORIGINS)"if [ -z "$RP_ID_VALUE" ]; then test -z "$RP_ORIGINS_VALUE"else test "$RP_ORIGINS_VALUE" = "https://$RP_ID_VALUE"fi
docker compose -p discvault_next_deploy config --quietdocker compose -p discvault_next_deploy pulldocker compose -p discvault_next_deploy up -ddocker compose -p discvault_next_deploy pscurl --fail http://localhost:6180/api/next/healthVerwacht resultaat
Section titled “Verwacht resultaat”Accepteer het resultaat voor Installeren: Docker Compose alleen wanneer alle onderstaande resultaten kloppen: postgres · next-api · next-worker · next-mcp; 6180 → API 5000; HTTP 2xx · /api/next/health. Paginaspecifieke controlepunten: release/v26-beta · app/deploy/next/docker-compose.yml · app/deploy/next/.env.example · DISCVAULT_NEXT_IMAGE · ghcr.io/helmerznl/discvault:beta · 6180:5000 · LEGACY_AUTH_ENABLED=true.
postgres·next-api·next-worker·next-mcp6180→ API5000- HTTP
2xx·/api/next/health
Veiligheid en terugdraaien
Section titled “Veiligheid en terugdraaien”Volgende stap
Section titled “Volgende stap”Installeren: Eerste start en statuscontrole
