mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
43c164efe0
Update config.yaml to use log property instead of the depreciated logs When using logs the following error occurs ``` Error: Error: the property config "logs" property is longer supported, rename to "log" and use object instead ``` |
||
---|---|---|
.. | ||
conf | ||
storage | ||
docker-compose.yaml | ||
README.md |
Verdaccio and simple local storage
This example shows a simple configuration for verdaccio
plus the default local storage with the minimum configuration required using docker-compose
.
Contains
- conf: Configuration file and default user httpasswd
- storage: A published default package with 2 versions.
$> docker-compose up
Login
If you want to login into the Verdaccio instance created via these Docker Examples, please try:
Username: jpicado Password: jpicado
Running in Dokku
If you use Dokku, an open-source alternative for Heroku, you can run this example using the following steps:
- Create a new application
dokku apps:create verdaccio
- Pull the verdaccio image
docker pull verdaccio/verdaccio:
- Tag the docker image for the app:
docker tag verdaccio/verdaccio:nightly-master dokku/verdaccio:v1
- Create the directories for persistent storage
mkdir -p /var/lib/dokku/data/storage/verdaccio/storage
,mkdir -p /var/lib/dokku/data/storage/verdaccio/storage
- Mount the volumes:
dokku storage:mount verdaccio /var/lib/dokku/data/storage/verdaccio/storage:/verdaccio/storage
anddokku storage:mount verdaccio /var/lib/dokku/data/storage/verdaccio/conf:/verdaccio/conf
- Deploy the docker image
dokku tags:deploy verdaccio v1
- Enjoy the application