update registry

This commit is contained in:
kev 2019-06-20 19:12:01 +08:00
parent c3d0a8dd1e
commit ec8af301d8
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#
# See: https://docs.docker.com/registry/storage-drivers/oss/
#
registry:
image: registry:2
ports:
- 5000:5000
environment:
- REGISTRY_STORAGE=oss
- REGISTRY_STORAGE_OSS_ACCESSKEYID=xxxxxxxxxxxxxxxx
- REGISTRY_STORAGE_OSS_ACCESSKEYSECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- REGISTRY_STORAGE_OSS_REGION=oss-us-west-1
- REGISTRY_STORAGE_OSS_INTERNAL=true
- REGISTRY_STORAGE_OSS_BUCKET=easypi
- REGISTRY_STORAGE_OSS_SECURE=false
- REGISTRY_STORAGE_OSS_ROOTDIRECTORY=/
restart: always

View File

@ -1,3 +1,7 @@
#
# See: https://docs.docker.com/registry/deploying/
#
registry:
image: registry:2
ports: