add verdaccio config and mount it instead of empty vault conf dir
This commit is contained in:
@@ -38,20 +38,15 @@ x-volume-configs:
|
|||||||
create_host_path: true
|
create_host_path: true
|
||||||
|
|
||||||
verdaccio: &verdaccio_volumes
|
verdaccio: &verdaccio_volumes
|
||||||
- /mnt/omnissiah-vault/configs/auth:/auth:ro
|
- ./verdaccio/config.yaml:/verdaccio/conf/config.yaml:ro
|
||||||
|
|
||||||
|
- /mnt/omnissiah-vault/configs/auth:/auth:ro
|
||||||
- type: bind
|
- type: bind
|
||||||
source: /mnt/omnissiah-vault/data/verdaccio/storage
|
source: /mnt/omnissiah-vault/data/verdaccio/storage
|
||||||
target: /verdaccio/storage
|
target: /verdaccio/storage
|
||||||
bind:
|
bind:
|
||||||
create_host_path: true
|
create_host_path: true
|
||||||
|
|
||||||
- type: bind
|
|
||||||
source: /mnt/omnissiah-vault/configs/verdaccio
|
|
||||||
target: /verdaccio/conf
|
|
||||||
bind:
|
|
||||||
create_host_path: true
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
registry-ui:
|
registry-ui:
|
||||||
image: joxit/docker-registry-ui:latest
|
image: joxit/docker-registry-ui:latest
|
||||||
|
|||||||
24
verdaccio/config.yaml
Normal file
24
verdaccio/config.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
listen: 0.0.0.0:4873
|
||||||
|
storage: /verdaccio/storage
|
||||||
|
plugins: /verdaccio/storage/plugins
|
||||||
|
|
||||||
|
auth:
|
||||||
|
htpasswd:
|
||||||
|
file: /auth/htpasswd
|
||||||
|
max_users: -1
|
||||||
|
|
||||||
|
packages:
|
||||||
|
"@*/*":
|
||||||
|
access: $authenticated
|
||||||
|
publish: $authenticated
|
||||||
|
unpublish: $authenticated
|
||||||
|
|
||||||
|
"**":
|
||||||
|
access: $authenticated
|
||||||
|
publish: $authenticated
|
||||||
|
unpublish: $authenticated
|
||||||
|
|
||||||
|
log:
|
||||||
|
type: stdout
|
||||||
|
format: pretty
|
||||||
|
level: warn
|
||||||
Reference in New Issue
Block a user