docs: clarify docker-compose dollar sign escaping for bcrypt hashes
This commit is contained in:
@@ -17,5 +17,8 @@ bcrypt.hash(password, saltRounds, (err, hash) => {
|
||||
}
|
||||
console.log('Plaintext:', password);
|
||||
console.log('Bcrypt Hash:', hash);
|
||||
console.log('\n⚠️ IMPORTANT FOR DOCKER COMPOSE:');
|
||||
console.log('If you use this hash directly in docker-compose.yml, you MUST escape the $ signs:');
|
||||
console.log('Docker Hash:', hash.replace(/\$/g, '$$$$'));
|
||||
console.log('\nSet this hash as your ADMIN_PASSWORD environment variable.');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user