verdaccio custom build with gitea auth
10K+
from release note 6.0.0
Update notes, no considerable changes on this major release, for npm.js users only dropping Node.js, 14 and 16 support, minimum now is Node.js 18 and no changes for Docker users.
please update to version 5.32.2 (2024-09-12) before upgrade.
./verdaccio/conf/config.yaml full config see app/config/config.yaml# This is the config file used for the docker images.
# It allows all users to do anything, so don't use it on production systems.
#
# Do not configure host and port under `listen` in this file
# as it will be ignored when using docker.
#
# Look here for more config file examples:
# https://verdaccio.org/docs/en/best
# path to a directory with all packages
storage: /verdaccio/storage/data
# path to a directory with plugins to include
plugins: /verdaccio/plugins
auth:
# https://verdaccio.org/docs/en/plugin-auth
gitea-auth:
# gitea-auth.url is not the api to the URl but just the server itself. Underneath we're concatenating /api/v1/user/orgs
url: https://url-to-your-gitea-server
# gitea-auth.defaultOrg If no orgs are in the list it defaults to ["gitea"]
defaultOrg: gitea
# htpasswd:
# file: /verdaccio/conf/htpasswd
# Maximum amount of users allowed to register, defaults to "+inf".
# You can set this to -1 to disable registration.
#max_users: 1000
## Adit
# To use `npm audit` uncomment the following section
# Since: `[email protected]`
# npm audit is a new command released with npm 6.x. Verdaccio includes a built-in middleware plugin to handle this command.
middlewares:
audit:
enabled: true
hello: # image 5.30+ support healthy check by: curl https://verdaccio.xxx/hello
path: /hello # optional, default value is /hello
text: ok # optional, default value is ok
# log settings
log:
- { type: stdout, format: pretty, level: trace }
#- {type: file, path: verdaccio.log, level: info}
# copy right
# Licenses http://www.apache.org/licenses/LICENSE-2.0
# more info see https://docs.docker.com/compose/compose-file/ or https://docker.github.io/compose/compose-file/
version: '3.8'
networks:
default:
services:
# https://hub.docker.com/r/sinlov/docker-verdaccio-gitea-auth
verdaccio-v5-permissions:
container_name: 'verdaccio-v5-permissions'
image: 'sinlov/docker-verdaccio-gitea-auth:latest' # https://hub.docker.com/r/sinlov/docker-verdaccio-gitea-auth/tags?page=1&ordering=last_updated
user: root
command: "chown -R verdaccio: /verdaccio/"
volumes:
- './verdaccio/conf:/verdaccio/conf'
- './data/verdaccio/storage:/verdaccio/storage'
- './data/verdaccio/plugins:/verdaccio/plugins' # use plugins
# https://hub.docker.com/r/sinlov/docker-verdaccio-gitea-auth
verdaccio-v5:
container_name: 'verdaccio-v5'
image: 'sinlov/docker-verdaccio-gitea-auth:latest' # https://hub.docker.com/r/sinlov/docker-verdaccio-gitea-auth/tags?page=1&ordering=last_updated
depends_on:
- 'verdaccio-v5-permissions'
user: verdaccio
ports:
- '4873:4873'
volumes:
- './verdaccio/conf:/verdaccio/conf'
- './data/verdaccio/storage:/verdaccio/storage'
- './data/verdaccio/plugins:/verdaccio/plugins' # use plugins
restart: on-failure:3 # on-failure:3 or unless-stopped always default "no"
docker-compose up -d
this url will change as you config of docker
gitea userAccess TokensContent type
Image
Digest
sha256:ec9180fd4…
Size
57 MB
Last updated
over 1 year ago
docker pull sinlov/docker-verdaccio-gitea-auth