5.0.2 • Published 6 years ago
adocker-nginx v5.0.2
adocker-nginx
Ngix docker
Installation
$ npm install adocker-nginx --save
Usage
'use strict'
const adockerNginx = require('adocker-nginx')
;(async () => {
let nginx = adockerNginx('my-nginx-container-01', {
template: 'conf/nginx.conf.template'
})
let { run, start, stop, remove, logs } = nginx.cli()
await run()
/* ... */
await logs()
/* ... */
await stop()
/* ... */
await start()
await remove({ force: true })
})()
License
This software is released under the MIT License.