Add docker-registry service template and update service-templates.json
This commit is contained in:
parent
d903a377bf
commit
5bdaa68368
48
templates/compose/docker-registry.yaml
Normal file
48
templates/compose/docker-registry.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
# documentation: https://docs.docker.com/registry/
|
||||
# slogan: The Docker Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images.
|
||||
# tags: registry,images,docker
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
environment:
|
||||
- SERVICE_FQDN_REGISTRY
|
||||
- REGISTRY_AUTH=htpasswd
|
||||
- REGISTRY_AUTH_HTPASSWD_REALM=Registry
|
||||
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/registry.password
|
||||
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./auth/registry.password
|
||||
target: /auth/registry.password
|
||||
isDirectory: false
|
||||
content: >-
|
||||
testuser:$2y$05$/o2JvmI2bhExXIt6Oqxa7ekYB7v3scj1wFEf6tBslJvJOMoPQL.Gy
|
||||
- type: bind
|
||||
source: ./config/config.yml
|
||||
target: /etc/docker/registry/config.yml
|
||||
isDirectory: false
|
||||
content: >-
|
||||
version: 0.1
|
||||
|
||||
log:
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
cache:
|
||||
blobdescriptor: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /var/lib/registry
|
||||
http:
|
||||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
threshold: 3
|
||||
- type: bind
|
||||
source: ./data
|
||||
target: /data
|
||||
isDirectory: true
|
@ -87,6 +87,16 @@
|
||||
"sql"
|
||||
]
|
||||
},
|
||||
"docker-registry": {
|
||||
"documentation": "https:\/\/docs.docker.com\/registry\/",
|
||||
"slogan": "The Docker Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images.",
|
||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IC92YXIvbGliL3JlZ2lzdHJ5XG5odHRwOlxuICBhZGRyOiA6NTAwMFxuICBoZWFkZXJzOlxuICAgIFgtQ29udGVudC1UeXBlLU9wdGlvbnM6IFtub3NuaWZmXVxuaGVhbHRoOlxuICBzdG9yYWdlZHJpdmVyOlxuICAgIGVuYWJsZWQ6IHRydWVcbiAgICBpbnRlcnZhbDogMTBzXG4gICAgdGhyZXNob2xkOiAzIgogICAgICAtCiAgICAgICAgdHlwZTogYmluZAogICAgICAgIHNvdXJjZTogLi9kYXRhCiAgICAgICAgdGFyZ2V0OiAvZGF0YQogICAgICAgIGlzRGlyZWN0b3J5OiB0cnVlCg==",
|
||||
"tags": [
|
||||
"registry",
|
||||
"images",
|
||||
"docker"
|
||||
]
|
||||
},
|
||||
"dokuwiki": {
|
||||
"documentation": "https:\/\/www.dokuwiki.org\/faq",
|
||||
"slogan": "A lightweight and easy-to-use wiki platform for creating and managing documentation and knowledge bases with simplicity and flexibility.",
|
||||
|
Loading…
Reference in New Issue
Block a user