This repository is now archived! It is no longer maintained or updated, but it is working as of July 1st, 2024.
Although the repository is not active, you may still contact me about questions, modifications, etc.
The reason for deprecating this repository is migration to onedev
This is the repository managing my own Verdaccio server
The server is private and allows no public access, the code is shared for public reference.
This repository is part of the larger dean-server monorepo, and can be ran from there as well as an individual repository.
- Docker Engine or Docker Desktop, with Docker Compose installed (Built in)
- This repository uses the new
docker compose
, it is unknown how well it would work with legacydocker-compose
versions
- This repository uses the new
docker compose
uses .env
to build the containers according to your needs, make sure it's configured, duplicate template.env to start
healthcheck.sh calls the following url:
https://$DOMAIN:$PROXY_PORT
If PROXY_PORT is undefined, HOST_PORT will be used, or 4873 as default.
If you are not me, and want to fork this repository, make sure to configure verdaccio for your own needs.
By default, only a single user is allowed to register, and package access is specifically configured for my own use.
- To run without a proxy, see alternate configurations
Docker compose can be ran from the context of this repository, but it is recommended to use it from the content of the entire dean-server monorepo
It is recommended to use this repository paired with dean-nginx or your own version of nginx-proxy
There are three configured profiles:
- live - Production service as used on my server
- dev - Development service that can be used in parallel with production
- beta - Beta version using the next Verdaccio, unstable, for testing purposes
After running, use Verdaccio as you would with npm, simply add --registry=<url>
ex.
npm --registry=https://verdaccio.deanayalon.com publish my-package
Any package not within the registry will be proxied to https://npmjs.com
In order to use this repository without a proxy:
- Enable port mapping
- Enable certificate mounting
The configuration file should work as is.
The problem with running Verdaccio without proxy is that it caches its html for an hour. This makes the webserver only work for the first url requested.
Therefore, it is recommended setting the healthcheck interval to 10s and building a new image, so that the correct url will be locked right away.
Unsure, but opening port 4873 and setting the VERDACCIO_PROTOCOL
environment variable to http
may allow for launching the container with neither proxy, nor https encryption.
THIS IS NOT RECOMMENDED, ALL COMMUNICATION WILL BE UNENCRYPTED, INCLUDING PASSWORDS AND PRIVATE PACKAGES!
Regardless, this possibility will be checked for ease of local development
- evab - For continuous guidance and support, through my constant nagging