feat: add mcp-servers/**
This commit is contained in:
11
src/verdaccio/.env.example
Normal file
11
src/verdaccio/.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# Verdaccio version
|
||||
VERDACCIO_VERSION=6.1.2
|
||||
|
||||
# Verdaccio container internal port (default: 4873)
|
||||
VERDACCIO_PORT=4873
|
||||
|
||||
# Verdaccio host port mapping (default: 4873)
|
||||
VERDACCIO_PORT_OVERRIDE=4873
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
77
src/verdaccio/README.md
Normal file
77
src/verdaccio/README.md
Normal file
@@ -0,0 +1,77 @@
|
||||
# Verdaccio
|
||||
|
||||
[English](./README.md) | [中文](./README.zh.md)
|
||||
|
||||
This service deploys Verdaccio, a lightweight private npm registry proxy.
|
||||
|
||||
## Services
|
||||
|
||||
- `verdaccio`: The Verdaccio service.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
| Variable Name | Description | Default Value |
|
||||
| ----------------------- | ------------------------------------------------------------ | ------------- |
|
||||
| VERDACCIO_VERSION | Verdaccio image version | `6.1.2` |
|
||||
| VERDACCIO_PORT | Verdaccio container internal port | 4873 |
|
||||
| VERDACCIO_PORT_OVERRIDE | Host port mapping (maps to Verdaccio port 4873 in container) | 4873 |
|
||||
| TZ | Timezone setting | `UTC` |
|
||||
|
||||
Please modify the `.env` file as needed for your use case.
|
||||
|
||||
## Volumes
|
||||
|
||||
- `./storage`: Directory for storing published packages
|
||||
- `./config`: Directory for Verdaccio configuration files
|
||||
- `./plugins`: Directory for Verdaccio plugins
|
||||
|
||||
## Ports
|
||||
|
||||
- `4873`: Verdaccio Web UI and npm registry API
|
||||
|
||||
## First-Time Setup
|
||||
|
||||
1. After starting the service, access Verdaccio at `http://localhost:4873`
|
||||
2. Create a user account:
|
||||
|
||||
```bash
|
||||
npm adduser --registry http://localhost:4873
|
||||
```
|
||||
|
||||
3. Configure npm to use your Verdaccio registry:
|
||||
|
||||
```bash
|
||||
npm set registry http://localhost:4873
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Publish a Package
|
||||
|
||||
```bash
|
||||
npm publish --registry http://localhost:4873
|
||||
```
|
||||
|
||||
### Install Packages
|
||||
|
||||
```bash
|
||||
npm install <package-name> --registry http://localhost:4873
|
||||
```
|
||||
|
||||
### Use as an Upstream Proxy
|
||||
|
||||
Verdaccio can proxy requests to the public npm registry. Packages not found locally will be fetched from npmjs.org and cached.
|
||||
|
||||
## Configuration
|
||||
|
||||
Edit the configuration file in `./config/config.yaml` to customize Verdaccio behavior:
|
||||
|
||||
- Authentication settings
|
||||
- Package access control
|
||||
- Upstream npm registry settings
|
||||
- Web UI customization
|
||||
|
||||
## Additional Information
|
||||
|
||||
- Official Documentation: <https://verdaccio.org/docs/what-is-verdaccio>
|
||||
- GitHub Repository: <https://github.com/verdaccio/verdaccio>
|
||||
3
src/verdaccio/README.zh.md
Normal file
3
src/verdaccio/README.zh.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Verdaccio
|
||||
|
||||
Verdaccio 是一个轻量级的私有 npm 注册表,允许用户在本地或私有网络中托管和共享 npm 包。它是一个开源项目,旨在提供一个简单易用的解决方案,以便开发人员可以更好地管理他们的 npm 依赖项。
|
||||
41
src/verdaccio/docker-compose.yaml
Normal file
41
src/verdaccio/docker-compose.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
verdaccio:
|
||||
<<: *default
|
||||
image: verdaccio/verdaccio:${VERDACCIO_VERSION:-6.1.2}
|
||||
networks:
|
||||
- verdaccio
|
||||
environment:
|
||||
- VERDACCIO_PORT=${VERDACCIO_PORT:-4873}
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- "${VERDACCIO_PORT_OVERRIDE:-4873}:4873"
|
||||
volumes:
|
||||
- ./storage:/verdaccio/storage
|
||||
- ./config:/verdaccio/conf
|
||||
- ./plugins:/verdaccio/plugins
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:4873/-/ping"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.00'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
|
||||
networks:
|
||||
verdaccio:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user