An open API service indexing awesome lists of open source software.

https://github.com/ebeigarts/dokku-verdaccio

Private npm registry server deployed as a dokku app
https://github.com/ebeigarts/dokku-verdaccio

dokku npm

Last synced: 4 months ago
JSON representation

Private npm registry server deployed as a dokku app

Awesome Lists containing this project

README

        

# Dokku Verdaccio

Private npm registry server deployed as a dokku app.

## Setup

```bash
dokku apps:create my-registry
dokku config:set my-registry PORT=5000
dokku storage:mount my-registry /var/lib/dokku/data/storage/my-registry:/verdaccio/storage
ssh [email protected] "chown 100:101 /var/lib/dokku/data/storage/my-registry/"
dokku ps:set-restart-policy my-registry unless-stopped
dokku domains:add my-registry my-registry.example.com
```

## Deploy

```bash
git remote add dokku [email protected]:my-registry
git push dokku master
```

Enable SSL after first deploy:

```bash
dokku letsencrypt my-registry
```

## Test

```bash
cd ../mypkg # e.g. node library with package.json containing name: @my/pkg
npm login --registry=https://my-registry.example.com/ --scope @my
npm publish --registry=https://my-registry.example.com/
```