/node-docker-secrets

Converts Docker Secrets mounted into a container to an object.

Primary LanguageJavaScript

Docker Secrets

This NPM module loads Docker secrets from the /run/secrets directory created by Docker Swarm into a JS object for use within Node.js applications.

Installation

npm install @cloudreach/docker-secrets

Usage

const secrets = require('@cloudreach/docker-secrets');
console.log(secrets);