* New translations logger.md (Japanese) docs(website): new translations * New translations logger.md (French) docs(website): new translations * New translations logger.md (German) docs(website): new translations * New translations kubernetes.md (Russian) docs(website): new translations * New translations kubernetes.md (Russian) docs(website): new translations * New translations kubernetes.md (Russian) docs(website): new translations * New translations en.json (German) docs(website): new translations * New translations en.json (German) docs(website): new translations * New translations windows.md (German) docs(website): new translations * New translations en.json (German) docs(website): new translations * New translations ansible.md (Portuguese, Brazilian) docs(website): new translations * New translations auth.md (Portuguese, Brazilian) docs(website): new translations * New translations en.json (Portuguese, Brazilian) docs(website): new translations * New translations cli.md (Vietnamese) docs(website): new translations * New translations docker.md (Vietnamese) docs(website): new translations * New translations dev-plugins.md (Vietnamese) docs(website): new translations * New translations docker.md (Vietnamese) docs(website): new translations * New translations build.md (Portuguese, Brazilian) docs(website): new translations * New translations ci.md (Portuguese, Brazilian) docs(website): new translations * New translations chef.md (Portuguese, Brazilian) docs(website): new translations * New translations auth.md (Portuguese, Brazilian) docs(website): new translations * New translations config.md (Portuguese, Brazilian) docs(website): new translations * New translations ci.md (Portuguese, Brazilian) docs(website): new translations * New translations ansible.md (Italian) docs(website): new translations * New translations ansible.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations build.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations build.md (Italian) docs(website): new translations * New translations build.md (Italian) docs(website): new translations * New translations chef.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations chef.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Spanish) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations build.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Korean) docs(website): new translations * New translations config.md (Vietnamese) docs(website): new translations * New translations config.md (Hindi) docs(website): new translations * New translations config.md (Portuguese) docs(website): new translations * New translations config.md (Russian) docs(website): new translations * New translations config.md (Spanish) docs(website): new translations * New translations config.md (Arabic) docs(website): new translations * New translations config.md (Chinese Simplified) docs(website): new translations * New translations config.md (Portuguese, Brazilian) docs(website): new translations * New translations config.md (Japanese) docs(website): new translations * New translations config.md (Polish) docs(website): new translations * New translations config.md (French) docs(website): new translations * New translations config.md (German) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations chef.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations iis-server.md (Vietnamese) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations docker.md (Portuguese, Brazilian) docs(website): new translations * New translations config.md (Portuguese, Brazilian) docs(website): new translations * New translations docker.md (Portuguese, Brazilian) docs(website): new translations * New translations config.md (Portuguese, Brazilian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations en.json (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations config.md (Spanish) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations web.md (Italian) docs(website): new translations * New translations what-is-verdaccio.md (Italian) docs(website): new translations * New translations use-cases.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations auth.md (Italian) docs(website): new translations * New translations cli.md (Italian) docs(website): new translations * New translations ci.md (Italian) docs(website): new translations * New translations config.md (Italian) docs(website): new translations * New translations config.md (Chinese Simplified) docs(website): new translations * New translations web.md (Chinese Simplified) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations config.md (Chinese Simplified) docs(website): new translations * New translations contributing.md (Chinese Simplified) docs(website): new translations * New translations web.md (Chinese Simplified) docs(website): new translations * New translations contributing.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations contributing.md (Chinese Simplified) docs(website): new translations * New translations contributing.md (Chinese Simplified) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations windows.md (Italian) docs(website): new translations * New translations install.md (Chinese Simplified) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations repositories.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations logo.md (Chinese Simplified) docs(website): new translations * New translations en.json (Chinese Simplified) docs(website): new translations * New translations logo.md (Chinese Simplified) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations reverse-proxy.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations uplinks.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations ssl.md (Italian) docs(website): new translations * New translations repositories.md (Italian) docs(website): new translations * New translations server.md (Italian) docs(website): new translations * New translations puppet.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations protect-your-dependencies.md (Italian) docs(website): new translations * New translations plugins.md (Italian) docs(website): new translations * New translations test.md (Italian) docs(website): new translations
6.2 KiB
id | title |
---|---|
docker | Docker |
Para fazer o pull do último pré-builddocker image:
docker pull verdaccio/verdaccio
Versões com Tags
Desde a versão v2.x
, você pode fazer o pull das imagens pela tag, por exemplo:
Para uma versão principal:
docker pull verdaccio/verdaccio:3
Para uma versão secundária:
docker pull verdaccio/verdaccio:3.0
Para uma versão específica (patch):
docker pull verdaccio/verdaccio:3.0.1
Para a próxima versão principal usando versão beta
(master).
docker pull verdaccio/verdaccio:beta
Se você está interessado em uma lista de tags, acesse o Docker Hub.
Executando verdaccio usando Docker
Para executar o container do docker:
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
O último argumento define qual imagem usar. a linha acima vai buscar a imagem mais recente da pre-build do dockerhub, isso se você já não tiver feito.
Se você tiver uma imagem construída localmente use verdaccio
como o último argumento.
You can use -v
to bind mount conf
, storage
and plugins
to the hosts filesystem:
V_PATH=/path/for/verdaccio; docker run -it --rm --name verdaccio -p 4873:4873 \
-v $V_PATH/conf:/verdaccio/conf \
-v $V_PATH/storage:/verdaccio/storage \
-v $V_PATH/plugins:/verdaccio/plugins \
verdaccio/verdaccio
Note: Verdaccio runs as a non-root user (uid=100, gid=101) inside the container, if you use bind mount to override default, you need to make sure the mount directory is assigned to the right user. In above example, you need to run
sudo chown -R 100:101 /opt/verdaccio
otherwise you will get permission errors at runtime. Use docker volume is recommended over using bind mount.
Plugins
Plugins can be installed in a separate directory and mounted using Docker or Kubernetes, however make sure you build plugins with native dependencies using the same base image as the Verdaccio Dockerfile.
Docker and custom port configuration
Any host:port
configured in conf/config.yaml
under listen
is currently ignored when using docker.
If you want to reach verdaccio docker instance under different port, lets say 5000
in your docker run
command replace -p 4873:4873
with -p 5000:4873
.
In case you need to specify which port to listen to in the docker container, since version 2.?.? you can do so by providing additional arguments to docker run
: --env PORT=5000
This changes which port the docker container exposes and the port verdaccio listens to.
Of course the numbers you give to -p
paremeter need to match, so assuming you want them to all be the same this is what you could copy, paste and adopt:
PORT=5000; docker run -it --rm --name verdaccio \
--env PORT -p $PORT:$PORT
verdaccio/verdaccio
Using HTTPS with Docker
You can configure the protocol verdaccio is going to listen on, similarly to the port configuration. You have to overwrite the default value("http") of the PROTOCOL
environment variable to "https", after you specified the certificates in the config.yaml.
PROTOCOL=https; docker run -it --rm --name verdaccio \
--env PROTOCOL -p 4873:4873
verdaccio/verdaccio
Using docker-compose
- Get the latest version of docker-compose.
- Build and run the container:
$ docker-compose up --build
You can set the port to use (for both container and host) by prefixing the above command with PORT=5000
.
Docker will generate a named volume in which to store persistent application data. You can use docker inspect
or docker volume inspect
to reveal the physical location of the volume and edit the configuration, such as:
$ docker volume inspect verdaccio_verdaccio
[
{
"Name": "verdaccio_verdaccio",
"Driver": "local",
"Mountpoint": "/var/lib/docker/volumes/verdaccio_verdaccio/_data",
"Labels": null,
"Scope": "local"
}
]
Build your own Docker image
docker build -t verdaccio .
There is also an npm script for building the docker image, so you can also do:
npm run build:docker
Note: The first build takes some minutes to build because it needs to run npm install
, and it will take that long again whenever you change any file that is not listed in .dockerignore
.
If you want to use the docker image on a rpi or a compatible device there is also a dockerfile available. To build the docker image for raspberry pi execute:
npm run build:docker:rpi
Please note that for any of the above docker commands you need to have docker installed on your machine and the docker executable should be available on your $PATH
.
Docker Examples
There is a separate repository that hosts multiple configurations to compose Docker images with verdaccio
, for instance, as reverse proxy:
https://github.com/verdaccio/docker-examples
Docker Custom Builds
- docker-verdaccio-gitlab
- docker-verdaccio
- docker-verdaccio-s3 Private NPM container that can backup to s3
- docker-verdaccio-ldap
- verdaccio-ldap
- verdaccio-compose-local-bridge
- docker-verdaccio
- verdaccio-docker
- verdaccio-server
- coldrye-debian-verdaccio docker image providing verdaccio from coldrye-debian-nodejs.