Deploy Verdaccio npm Registry

Private npm registry and npmjs.org cache, login required, sign-up closed

Deploy Verdaccio npm Registry

Registry

Just deployed

/verdaccio/storage

Deploy and Host Verdaccio npm Registry on Railway

Verdaccio is an open-source private npm registry. You publish your own packages to it with the normal npm, pnpm or Yarn commands, and it fetches and caches public packages from npmjs.org, so one registry URL serves both.

About Hosting Verdaccio npm Registry

The template runs Verdaccio 7.1.2 from the official image, pinned by digest, as one service with a 5 GB volume for packages, the npmjs.org cache and user accounts. The registry starts closed: every download, publish and unpublish needs a login, so it is neither a public package host nor an open npm proxy, and self-service sign-up is turned off. On every boot the template writes one administrator from VERDACCIO_ADMIN_USERNAME (admin by default) and a generated VERDACCIO_ADMIN_PASSWORD, which you copy from the service's variables before running npm login. More users are added with a small helper over railway ssh. The configuration is embedded in the start command, so no variable can loosen the access rules, and Verdaccio runs as the image's unprivileged user.

Why Deploy Verdaccio npm Registry on Railway

Railway provides the HTTPS domain, the persistent volume, a generated password and health-checked deploys. Tarball URLs follow the HTTPS domain automatically, and Verdaccio's login rate limit sees each client's own address behind Railway's proxy.

Common Use Cases

  • Publish private npm packages for a team or a CI pipeline without a paid npm organization
  • Cache npmjs.org packages so installs keep working and stay fast when the public registry is slow
  • Test package releases end to end before publishing them to npmjs.org

Dependencies for Verdaccio npm Registry Hosting

The deployment uses Verdaccio (verdaccio.org) and fetches public packages from npmjs.org.

Deployment Dependencies

  • Verdaccio 7.1.2 with a 5 GB volume
  • Outbound HTTPS to registry.npmjs.org for public packages
  • npm 9 or later on your machines (npm 9 and 10 log in with npm login --auth-type=legacy)

Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0