npm — DevOps Guide
Architecture
Verdaccio runs as a single container with OIDC authentication via Authelia.
- Image: Custom build from
verdaccio/verdaccio:6withverdaccio-openid-connectplugin - Port: 4873 (internal)
- Storage: Bind mount at
data/npm/storage/ - Config:
npm/conf/config.yaml
Management
bash
cd /opt/services/registries
# Start/stop
task up:npm
task down:npm
# Logs
task logs:npm
# Health check
curl -sf https://npm.registry.hochguertel.work/-/pingConfiguration
Edit npm/conf/config.yaml for:
- Package scopes and access rules
- Uplink (proxy) configuration
- Authentication settings
- Logging level
After changes, restart:
bash
task down:npm && task up:npmBackup
bash
# Backup storage
tar -czf npm-backup-$(date +%Y%m%d).tar.gz data/npm/storage/