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
- Host: GitHub
- URL: https://github.com/ebeigarts/dokku-verdaccio
- Owner: ebeigarts
- Created: 2018-03-19T15:02:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-19T15:02:25.000Z (over 7 years ago)
- Last Synced: 2024-07-31T20:34:42.766Z (11 months ago)
- Topics: dokku, npm
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Install-anything-on-Dokku - Verdaccio
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/
```