Harden Docker service credential setup

This commit is contained in:
Abhishek Kumar 2026-06-21 13:44:31 +05:30
parent 17054e3f26
commit 678d4bfb1e
9 changed files with 255 additions and 9 deletions

View file

@ -245,6 +245,8 @@ Write-Info "[2/$TotalSteps] Creating environment file..."
$ossJwtSecret = New-HexSecret 32
$postgresPassword = New-HexSecret 32
$redisPassword = New-HexSecret 32
$minioRootUser = "dograh$((New-HexSecret 6).Substring(0, 12))"
$minioRootPassword = New-HexSecret 32
$envLines = @(
'# Container registry for Dograh images'
@ -263,6 +265,11 @@ $envLines = @(
'# container.'
"REDIS_PASSWORD=$redisPassword"
''
'# MinIO root credentials. Used by the MinIO container and the API''s'
'# MINIO_ACCESS_KEY / MINIO_SECRET_KEY.'
"MINIO_ROOT_USER=$minioRootUser"
"MINIO_ROOT_PASSWORD=$minioRootPassword"
''
'# Telemetry (set to false to disable)'
"ENABLE_TELEMETRY=$EnableTelemetry"
''