/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 docker-secrets

Usage

const secrets = require('docker-secrets');
cosnole.log(secrets);